System.IO namespaces

The System.IO and System.IO.Compression namespaces contain types that support reading and writing data to streams, and basic compression and decompression services for streams.

This topic displays the types in the System.IO and System.IO.Compression namespaces that are included in the .NET for Windows Store apps. Note that the .NET for Windows Store apps does not include all the members of each type. For information about individual types, see the linked topics. The documentation for a type indicates which members are included in the .NET for Windows Store apps.

System.IO namespace

Types supported in the .NET for Windows Store apps

Description

BinaryReader

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

BinaryWriter

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

EndOfStreamException

The exception that is thrown when reading is attempted past the end of a stream.

FileNotFoundException

The exception that is thrown when an attempt to access a file that does not exist on disk fails.

InvalidDataException

The exception that is thrown when a data stream is in an invalid format.

IOException

The exception that is thrown when an I/O error occurs.

MemoryStream

Creates a stream whose backing store is memory.

Path

Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.

SeekOrigin

Provides the fields that represent reference points in streams for seeking.

Stream

Provides a generic view of a sequence of bytes.

StreamReader

Implements a TextReader that reads characters from a byte stream in a particular encoding.

StreamWriter

Implements a TextWriter for writing characters to a stream in a particular encoding.

StringReader

Implements a TextReader that reads from a string.

StringWriter

Implements a TextWriter for writing information to a string. The information is stored in an underlying StringBuilder.

TextReader

Represents a reader that can read a sequential series of characters.

TextWriter

Represents a writer that can write a sequential series of characters. This class is abstract.

WindowsRuntimeStorageExtensions

Contains extension methods for the IStorageFile and IStorageFolder interfaces in the Windows Runtime when developing Windows Store apps.

WindowsRuntimeStreamExtensions

Contains extension methods for converting between streams in the Windows Runtime and managed streams in the .NET for Windows Store apps.

System.IO.Compression namespace

Types supported in the .NET for Windows Store apps

Description

CompressionLevel

Specifies values that indicate whether a compression operation emphasizes speed or compression size.

CompressionMode

Specifies whether to compress or decompress the underlying stream.

DeflateStream

Provides methods and properties for compressing and decompressing streams using the Deflate algorithm.

GZipStream

Provides methods and properties used to compress and decompress streams.

ZipArchive

Represents a zip archive.

ZipArchiveEntry

Represents an entry in the zip archive.

ZipArchiveMode

Specifies values for interacting with zip archive entries.

See Also

Concepts

.NET for Windows Store apps - supported APIs