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

Summary

This chapter provided a brief introduction to input and output streams and how they are used to write to and read from files.

The important points discussed are reviewed in this section.

I/O stands for program input and program output.

Program input refers to data flowing into a program and is handled by input streams from which the program can read.

Program output refers to data flowing out of a program and is handled by output streams to which the program can write.

In C# and .NET, streams and files can be abstracted into objects of classes that reside in the System.IO namespace. This makes it easier to perform file I/O.

Any file consists of one long sequence of bits positioned one after the other. Depending on their interpretation, ...

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