Hello!
I just wonder in this specific case is it any advantage to use a
TextReader a reference to a StreamReader ?
Try
{
TextReader tr = new StreamReader(lo cationTextBox.T ext);
Try
{
displayTextBox. Text = tr.ReadToEnd();
}
catch(Exception ex)
{
MessageBox.Show (ex.Message)
}
finally
{
tr.Close();
}
}
catch(Exception ex)
{
MessageBox.Show (ex.Message);
}
//Tony
I just wonder in this specific case is it any advantage to use a
TextReader a reference to a StreamReader ?
Try
{
TextReader tr = new StreamReader(lo cationTextBox.T ext);
Try
{
displayTextBox. Text = tr.ReadToEnd();
}
catch(Exception ex)
{
MessageBox.Show (ex.Message)
}
finally
{
tr.Close();
}
}
catch(Exception ex)
{
MessageBox.Show (ex.Message);
}
//Tony
Comment