Murach's C# - How to work with text and binary files
Although databases are commonly used in C# applications, you may also need to access
data that's stored in a text file or a binary file. So this chapter shows you how
to use the Directory, File, and FileStream classes to work with files; how to use
the StreamWriter and StreamReader classes to write and read text files; and how to
use the BinaryWriter and BinaryReader classes to write and read binary files.
|
|
|
|
The classes for managing directories,
files, and paths |
656 |
|
How files and streams work |
658 |
|
How to use the FileStream class |
660 |
|
How to use the exception classes for
file I/O |
662 |
|
|
How to write a text file |
664 |
|
How to read a text file |
666 |
|
A class that works with a text file |
668 |
|
|
How to write a binary file |
670 |
|
How to read a binary file |
672 |
|
A class that works with a binary file |
674 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike Murach &
Associates, Inc. All rights reserved.
|
|
|