PDN-C3-PPT - Chapter 3 The .NET Framework Class Library...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Chapter 3 The .NET Framework Class Library (FCL) Yingcai Xiao File and Stream I/O FCL provides the API that managed applications write to. 100 hierarchically organized namespaces and more than 7,000 types. File and Stream I/O A stream is an abstract representation of byte-oriented data. Stream classes have methods that you can call to perform input and output. An additional level of abstraction: readers and writers. General Procedure 1. Open the file using a FileStream object. 2. For binary reads and writes, wrap instances of BinaryReader and BinaryWriter around the FileStream object and call BinaryReader and BinaryWriter methods such as Read and Write to perform input and output. 3. For reads and writes involving text, wrap a StreamReader and StreamWriter around the FileStream object and use StreamReader and StreamWriter methods such as ReadLine and WriteLine to perform input and output. 4. Close the FileStream object....
View Full Document

This note was uploaded on 02/21/2011 for the course CS 573 taught by Professor Dr.xiao during the Spring '10 term at The University of Akron.

Page1 / 11

PDN-C3-PPT - Chapter 3 The .NET Framework Class Library...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online