|
-
May 10th, 2010, 05:20 PM
#2
Re: How to read from a text file into a textbox?
StreamReader f = new StreamReader(new FileStream("c:\afile.txt", FileMode.Open, FileAccess.ReadWrite));
textBox1.Text = f.ReadToEnd();
=================
OK! I have found...
But how to write the text back?
Must I create a new file and overwrite old file?
Maybe I can use "FileAccess.ReadWrite" mode?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|