[Message Deleted]
C#
3
Posts
3
Posters
0
Views
1
Watching
-
I think what you're asking is how to read a text file in C#? If so, add a textbox control to your form and a button, then double-click on that button and enter the following code:
StreamReader ReadFile = new StreamReader("C:\\MyTextFile.txt");
textBox1.Text = ReadFile.ReadToEnd();
ReadFile.Dispose();Now that you've got the code to read from a text file, you need to add a using to the top of your document, add the following line to the top of the page:
using System.IO;
Hope this helps dude. j.t.
j.t.