System.IO Namespace

The System.IO namespace contains classes and structures that allow synchronous and asynchronous reading and writing on data streams and files. It is implemented in Mscorlib.dll. Note that the System.IO.IsolatedStorage name­space is not supported in the .NET Compact Framework. Table A-15 lists the classes and structures of the System.IO namespace.

Table A-15. Classes and Structures in the System.IO Namespace 

Class or Structure

Description

BinaryReader class

Reads primitive data types as binary values in a specific encoding.

BinaryWriter class

Writes primitive types in binary to a stream and supports writing strings in a specific encoding.

BufferedStream class

Not supported.

Directory class

Exposes static methods for ...

Get Microsoft® .NET Compact Framework (Core Reference) 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.