Key Members of the System.IO Namespace : File « File Directory Stream « C# / CSharp Tutorial






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
DirectoryInfo                                used to manipulate a directory structure. 

DriveInfo                                    provides information for the drives.

File
FileInfo                                     manipulate files. 

FileStream                                   for 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.








15.1.File
15.1.1.Key Members of the System.IO Namespace
15.1.2.File: GetCreationTime and GetLastAccessTime
15.1.3.Create the FileInfo class from the file selected in the OpenFileDialog
15.1.4.File.Exists
15.1.5.File.ReadAllLines
15.1.6.File.WriteAllLines