.NET Framework: Reading and Writing with a Text File

This sample shows some how to use the StreamReader and StreamWriter classes to read and write text files.

Featured Highlights:

This tutorial demonstrates how to read from and write to text files. In particular, it discusses:

Requirements:

Microsoft Visual Studio .NET Professional (or greater).
Windows 2000 or Windows XP.

Running the Sample:

Simply press F5.

See Also:

System.IO.StreamReader, System.IO.StreamWriter, System.IO Namespace