Simply put, a file is nothing more than a container holding a collection of data. The data a file contains can be anything ranging from bits representing text to images to sounds, etc. In this tutorial, you will learn how to read text from files and write text back to files using the StreamReader and StreamWriter Classes.
This is a companion discussion topic for the original entry at http://www.kirupa.com/net/reading_writing_files.htm