A
AMP
Hello,
I'm not sure this is the best way but, I have a txt file I want to put
into a TextBox:
OpenFileDialog opnFile = new OpenFileDialog();
opnFile.Filter = "txt files (*.txt)|*.txt|All files
(*.*)|*.*";
opnFile.ShowDialog();
Stream openStream = opnFile.OpenFile();
StreamReader openReader = new StreamReader(openStream);
How do I get the stream into the Textbox AND Is this the best way of
doing this?
Thanks
Mike
I'm not sure this is the best way but, I have a txt file I want to put
into a TextBox:
OpenFileDialog opnFile = new OpenFileDialog();
opnFile.Filter = "txt files (*.txt)|*.txt|All files
(*.*)|*.*";
opnFile.ShowDialog();
Stream openStream = opnFile.OpenFile();
StreamReader openReader = new StreamReader(openStream);
How do I get the stream into the Textbox AND Is this the best way of
doing this?
Thanks
Mike