English
Topic 16. Working with files and streams, and serializing data to JSON
Goal: become familiar with the classes of the System.IO namespace and the System.Text.Json library; learn to work with files and directories, read and write text and binary files through streams, handle I/O exceptions, import CSV data, and serialize and deserialize objects to and from JSON with options and attributes.
Lecture contents
- The file system and encoding — The file system in .NET · Text encoding
- Streams and CSV format — Streams · CSV format
- JSON and asynchronous operations — JSON and System.Text.Json · Asynchronous file operations
- Examples and common mistakes — Example programs · Common mistakes