What I want to do is read / write a text file as follows:
- Display the contents of a .txt file in a control, such as RichTextBox
- Save text in RichTextBox to the specified .txt file
The txt file size will not be large. There are several methods that could do the job, but I'm not sure which one is better.
- TextReader / TextWriter
- File class using File.ReadAll, File.WriteAll
source
share