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 ...
Get C# 2010 for Programmers, Fourth Edition 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.