Chapter 2. I/O in the .NET Framework
This chapter lays the foundation for virtually every networking example contained in this book. Without a working knowledge of how .NET handles I/O, it may prove difficult to adapt the code examples in this book to your own needs.
I/O applies to network data transfers, as well as saving and loading to your computer’s hard disk Later chapters will describe how to perform network transfers; however, this chapter will be concerned with the underlying I/O operations that are common to both types of transfers. The first half of this chapter will demonstrate how to read and write to disk, using .NET streams.
The second half of this chapter develops the stream concept by demonstrating how to convert complex ...