Skip to main content
Book cover

Pro C# 7 pp 755–801Cite as

Apress

File I/O and Object Serialization

  • Chapter
  • First Online:
  • 4411 Accesses

Abstract

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, and memory-based data stores.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Andrew Troelsen and Philip Japikse

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Troelsen, A., Japikse, P. (2017). File I/O and Object Serialization. In: Pro C# 7. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3018-3_20

Download citation

Publish with us

Policies and ethics