Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
The File type exposes the following members.
Name | Description | |
---|---|---|
AppendAllLines(String, IEnumerable<String>) | Appends lines to a file, and then closes the file. | |
AppendAllLines(String, IEnumerable<String>, Encoding) | Appends lines to a file by using a specified encoding, and then closes the file. | |
AppendAllText(String, String) | Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file. | |
AppendAllText(String, String, Encoding) | Appends the specified string to the file, creating the file if it does not already exist. | |
AppendText | Creates a StreamWriter that appends UTF-8 encoded text to an existing file. | |
Copy(String, String) | Copies an existing file to a new file. Overwriting a file of the s
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
|