Examples from Chapter 15 (Files and Streams) of Programming C# 12.0 (O'Reilly).
- Example 3. TextReader chunk reading methods
- Example 4. Writing text to a file with StreamWriter
- Example 5. Wrapping a string in a StringReader
- Example 6. Writing with the Windows 1252 code page
- Example 7. File.Create versus new FileStream
- Example 8. Appending a single string to a file
- Example 9. Appending a single line to a file
- Example 10. Simple JSON serialization model
- Example 11. Serializing data with JsonSerializer
- Example 12. Deserializing data with JsonSerializer
- Example 13. Controlling the JSON with JsonPropertyName attributes
- Example 14. Using JsonSerializerDefaults to get camelCased property names
- Example 15. A type supporting circular references
- Example 16. Serializing a type supporting circular references
- Example 17. Enabling JSON serializer code generation
- Example 18. Using JSON serializer code generation
- Example 19. Dynamic JSON inspection with JsonDocument and JsonElement
- Example 20. Dynamic JSON array enumeration with JsonDocument and JsonElement
- Example 21. Reading JSON properties with JsonElement
- Example 22. Modifying JSON with
JsonNode