Export (0) Print
Expand All
6 out of 9 rated this helpful - Rate this topic

File and Stream I/O

The System.IO namespace contains types that allow synchronous and asynchronous reading and writing on data streams and files.

The following distinctions help clarify the differences between a file and a stream. A file is an ordered and named collection of a particular sequence of bytes having persistent storage. Therefore, with files, one thinks in terms of directory paths, disk storage, and file and directory names. In contrast, streams provide a way to write and read bytes to and from a backing store that can be one of several storage mediums. Just as there are several backing stores other than disks, there are several kinds of streams other than file streams. For example, there are network, memory, and tape streams.

For a list of common I/O tasks, see Common I/O Tasks.

Basic File I/O

Explains fundamental I/O concepts, introduces the I/O classes, and provides code examples of basic I/O operations.

Composing Streams

Explains the different kinds of streams and their associated backing stores, providing code examples.

Asynchronous File I/O

Describes the performance advantages and basic operation of asynchronous I/O.

Isolated Storage

Describes a data storage mechanism that provides isolation and safety by defining standardized ways of associating code with saved data.

Pipes

Describes anonymous and named pipe operations in the .NET Framework

Memory-Mapped Files

Describes memory-mapped files, which contains the contents of files on disk in virtual memory. You can use memory-mapped files to edit very large files and to create shared memory for interprocess communication.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.