Stream classes

In this chapter you will learn:

  1. Key Members of the System.IO Namespace

Key Members of the System.IO Namespace

Nonabstract I/O Class Type Meaning
BinaryReader / BinaryWriter store and retrieve primitive data types (integers, Booleans, strings, and whatnot) as a binary value.
BufferedStream temporary storage for a stream of bytes that may be committed to storage.
Directory / DirectoryInfoused to manipulate a directory structure.
DriveInfo provides information for the drives.
File / FileInfomanipulate files.
FileStreamfor random file access.
FileSystemWatcher monitor the modification of a given external file.
MemoryStream random access to streamed data stored in memory.
Path performs operations on path information.
StreamWriter / StreamReader store and retrieve textual information to or from a file.
StringWriter / StringReader underlying storage is a string buffer rather than a physical file.

Next chapter...

What you will learn in the next chapter:

  1. How to read all text file content
Home » C# Tutorial » Stream
Stream classes
Text File Read
Text File write
Text File Create
Text File Append
Replace File Content
BinaryReader
BinaryWriter
FileStream Create
FileStream byte read and write
BufferedStream
Compare File
File Copy
File Copy with FileStream
MemoryStream
Object Serialization
String Writer