Chapter 10. Streams, Files, and I/O

This chapter discusses the facilities the Microsoft .NET Framework provides for input/output. Most programs require the ability to store persistent data in the file system or to communicate with another process. With one exception, the topics discussed in this chapter are familiar to the Java programmer. Concepts such as streams, working with the file system, serialization, and using the console have been staple elements of Java for some time. The only aspect of the .NET I/O support that will be new is known as isolated storage, which allows data to be easily stored on a per-user basis.

Working with the Console

Reading from and writing to the console are two of the most fundamental uses of I/O, especially for ...

Get C# for Java Developers 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.