O'Reilly logo

C# Primer Plus by Klaus Michelsen

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

Chapter 22. FILE I/O BASICS

You will learn about the following in this chapter:

  • Input streams and output streams

  • Text files and character streams

  • Binary files and binary streams

  • Four classes from the System.IO namespace that are commonly used to handle files and streams

  • How to represent a file in your program with the FileInfo class

  • The character stream classes StreamWriter and StreamReader

  • The binary stream class FileStream

I/O is short for program input and program output. Program input refers to data (numbers, characters, and bytes) flowing into a program from a source (keyboard, file, remote computer, or something similar). Program output refers to data flowing out from a program to a destination (screen, file, remote computer, or something similar). ...

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