Overview
- Provides a buffer for another Stream.
- Used when the underlying stream is not very efficient at handling frequent calls.
Good practice
- Remember to call Close on a stream.
Examples
Write to File
FileStream a = File.Create(@"C:\Public\TestBuff.txt");
BufferedStream b = new BufferedStream(a);
StreamWriter c = new StreamWriter(b);
c.WriteLine("Hello World");
c.WriteLine("Bye Bye!");
c.Close();
You May Also Like

Exam 70-536 Study Notes
My study notes for Microsoft exam 70-536: .NET types, collections, generics, I/O, serialization and more, with C# examples.

Starting Exam 70-536 Study
After a burnout, I'm putting my own project on hold to study for Microsoft exam 70-536.

Design Patterns - Proxy Pattern
The Proxy Pattern, and the last article in the design patterns series, now that I've finished reading Head First Design Patterns.




