T
Tony Johansson
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(locationTextBox.Text);
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(locationTextBox.Text);
Try
{
displayTextBox.Text = tr.ReadToEnd();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message)
}
finally
{
tr.Close();
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
//Tony