O'Reilly logo

C# 2010 for Programmers, Fourth Edition by Harvey M. Deitel, Paul J. Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

17. Files and Streams

Objectives

In this chapter you’ll learn:

• To create, read, write and update files.

• To use classes File and Directory to obtain information about files and directories on your computer.

• To use LINQ to search through directories.

• To become familiar with sequential-access file processing.

• To use classes FileStream, StreamReader and StreamWriter to read text from and write text to files.

• To use classes FileStream and BinaryFormatter to read objects from and write objects to files.

I can only assume that a “Do Not File” document is filed in a “Do Not File” file.

Senator Frank Church Senate Intelligence Subcommittee Hearing, 1975

Consciousness ... does not appear to itself chopped up in bits. ... A “river” or a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required