BufferedStream Class

Overview

  • Provides an buffer for another Stream.
  • Used when the underlying stream is not very efficient in handling constant 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();
 
learning/exam70-536/bufferedstream.txt · Last modified: 2008/08/27 14:45 by david
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki