File and Stream I/O

Computers would essentially be useless without I/O (input and output). Users must have ways of getting information to the computer (keyboard, disk, network, and so on). After the data is in the computer and has been processed, users need a way to get it out (monitor, disk, network, email, and so on). In previous chapters in this book, you saw some examples that used the System.Console.WriteLine and System.Console.ReadlLine commands. Those are basic implementations of input and output streams. In the following sections, you will learn to use and understand file I/O and streams.

Understanding File and Stream I/O

A file is a collection of data, generally stored on some sort of storage media or disk. File I/O is just that: the ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.