1. C# IO file stream, commonly used operations
Editing from other developers:
Commonly used related classes for file operations
- 1) Directory //Operate directory (folder), static class.
- 2) Path//static class, to operate on the path of a file or directory (very convenient) [string]
- 3) File //Operate files, static class, operate on the whole file. Copy, delete, cut, etc.
- 4)DriveInfo //Get the drive information in the disk
- 5) DirectoryInfo //A "class" of a folder, used to describe a folder object (returns a DirectoryInfo array when obtaining all directories under the specified directory.)
- 6) FileInfo//file class, used to describe a file object. When getting all the files in the specified directory, return a FileInfo array.
- 1.Stream//file stream, abstract class.
- 2.FileStream//file stream, MemoryStream (memory stream), NetworkStream (network stream)
- 3.StreamReader//Quickly read text files
- 4.StreamWriter//Quickly write text files
Two, other
More: