2010 | OriginalPaper | Buchkapitel
Files, Streams, and IO
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
In this chapter, we looked at how C# supports working with files and directories, using either the File and Directory or FileInfo and DirectoryInfo classes. We saw how to compose and manipulate file paths using the Path class and how to monitor a directory for changes and how to specify which changes we are interested in.
We also explored the support for streams, which are a general-purpose feature for reading and writing sequential byte data to a range of backing stores in a consistent way. Because working with byte values can be very tedious, we also looked at the reader and writer classes that make working with binary and textual representations of built-in type values a breeze.