Load text from file

  • Thread starter Thread starter David Dvali
  • Start date Start date
for example this way

using(StreamReader reader = File.OpenText(fileName))
{
textBox1.Text = reader.ReadToEnd();
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top