Description

System.IO.FileStream is used for reading and writing files on a file system, as well as other file-related operating system handles such as pipes, standard input, standard output. System.IO.FileStream buffers input and output for better performance.

The System.IO.FileStream class can open a file in one of two modes, either synchronously or asynchronously, with significant performance consequences for the synchronous methods (System.IO.FileStream.Read and System.IO.File-Stream.Write) and the asynchronous methods (System.IO.FileStream.BeginRead and System.IO.FileStream.BeginWrite). Both sets of methods will work in either mode; however, the mode will affect the performance of these methods. System.IO.FileStream defaults to opening files ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library 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.