2007/11/25

StreamWriter

StreamWriter is designed for character output in a particular Encoding, whereas classes derived from Stream are designed for byte input and output.

Create a text file.
: Write Text to a File
Write to a text file.
: Write Text to a File
Read from a text file.
: Read Text from a File

File.AppendText : Append text to a file.
FileInfo.AppendText Open and Append to a Log File
FileInfo.Length Get the size of a file.
File.GetAttributes Get the attributes of a file.
File.SetAttributes Set the attributes of a file.
File.Exists Determine if a file exists.
Read from a binary file. : Read to a Newly Created Data File
Write to a binary file. : Write to a Newly Created Data File

No comments: