Skip to Content
C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition
book

C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

by Mark J. Price
November 2021
Intermediate to advanced content levelIntermediate to advanced
826 pages
20h 10m
English
Packt Publishing
Content preview from C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

09

Working with Files, Streams, and Serialization

This chapter is about reading and writing to files and streams, text encoding, and serialization.

We will cover the following topics:

  • Managing the filesystem
  • Reading and writing with streams
  • Encoding and decoding text
  • Serializing object graphs
  • Controlling JSON processing

Managing the filesystem

Your applications will often need to perform input and output operations with files and directories in different environments. The System and System.IO namespaces contain classes for this purpose.

Handling cross-platform environments and filesystems

Let's explore how to handle cross-platform environments like the differences between Windows and Linux or macOS. Paths are different for Windows, macOS, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition

Mark J. Price

Publisher Resources

ISBN: 9781801077361Supplemental Content