© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. Troelsen, P. JapiksePro C# 10 with .NET 6https://doi.org/10.1007/978-1-4842-7869-7_19

19. File I/O and Object Serialization

Andrew Troelsen1   and Phil Japikse2
(1)
Chambersburg, PA, USA
(2)
West Chester, OH, USA
 

When you create desktop applications, the ability to save information between user sessions is commonplace. This chapter examines several I/O-related topics as seen through the eyes of the .NET Framework. The first order of business is to explore the core types defined in the System.IO namespace and learn how to modify a machine’s directory and file structure programmatically. The next task is to explore various ways to read from and write to character-based, ...

Get Pro C# 10 with .NET 6: Foundational Principles and Practices in Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.