Input and Output in .NET

Programming languages have undergone an evolution in how they deal with the important topic of input/output (I/O). Early languages, such as FORTRAN, COBOL, and the original BASIC, had I/O statements built into the language. Later languages have tended not to have I/O built into the language, but instead rely on a standard library for performing I/O, such as the <stdio.h> library in C. The library in languages like C works directly with files.

Still later languages, such as C++ and Java, introduced a further abstraction called a stream. A stream serves as an intermediary between the program and the file. Read and write operations are done to the stream, which is tied to a file. This architecture is very flexible, because ...

Get Application Development Using Visual Basic® and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.