Skip to main content

Files, Streams, and IO

  • Chapter
Introducing Visual C# 2010
  • 1685 Accesses

Abstract

In this chapter, we looked at how C# supports working with files and directories, using either the File and Directory or FileInfo and DirectoryInfo classes. We saw how to compose and manipulate file paths using the Path class and how to monitor a directory for changes and how to specify which changes we are interested in.

We also explored the support for streams, which are a general-purpose feature for reading and writing sequential byte data to a range of backing stores in a consistent way. Because working with byte values can be very tedious, we also looked at the reader and writer classes that make working with binary and textual representations of built-in type values a breeze.

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

Access this chapter

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

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Adam Freeman

About this chapter

Cite this chapter

Freeman, A. (2010). Files, Streams, and IO. In: Introducing Visual C# 2010. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3172-1_20

Download citation

Publish with us

Policies and ethics