This document provides an overview of file handling in C#, including:
- Files are collections of data stored on disk with a name and path, and become streams when opened for reading or writing. Streams represent the sequence of bytes passing through.
- The System.IO namespace contains classes for performing file operations like creating, deleting, reading and writing files. Classes include FileStream for file operations, StreamWriter for writing characters to a stream, and StreamReader for reading strings from a stream.
- Serialization converts an object to a byte stream to save to memory, file or database. Deserialization reverses this process. The SerializableAttribute is required for serialization.