Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access