Have a look at the help/MSDN topic for the StreamReader class. It provides links to code examples for numerous I/O operations.