O'Reilly logo

Pro C# 7: With .NET and .NET Core by Philip Japikse, Andrew Troelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Andrew Troelsen and Philip Japikse 2017

Andrew Troelsen and Philip Japikse, Pro C# 7, https://doi.org/10.1007/978-1-4842-3018-3_20

20. File I/O and Object Serialization

Andrew Troelsen and Philip Japikse2

(1)Minneapolis, Minnesota, USA

(2)West Chester, Ohio, USA

When you create desktop applications, the ability to save information between user sessions is commonplace. This chapter examines a number of 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, binary-based, string-based, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required