[]
Windows File Helper.
public static class NativeFile
| Name | Description |
|---|---|
| Exists(string) | Checks if the specified file path exists. |
| GetLastWriteTime(string) | Gets the last write time access for the specified path. |
| ReadAllBytes(string) | Opens a binary file, reads the contents of the file into a byte array, and then closes the file. |
| ReadAllText(string) | Opens a text file, reads all lines of the file, and then closes the file. |
| ReadAllText(string, Encoding, NativeFileShare) | Opens a text file, reads all lines of the file, and then closes the file. |