File Class |
public sealed class File
The File type exposes the following members.
| Name | Description | |
|---|---|---|
| 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. | |
| Copy(String, String, Boolean) | Copies an existing file to a new file where overwrite can be specified. | |
| Create | Creates or overwrites a file in the specified path. | |
| CreateText | Creates or opens a file for writing UTF-8 encoded text. | |
| Delete | Delete the specified file. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Exists | Determines if the specified file exists on the system. | |
| GetCreationTime | Returns the data and time the specified file was created. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetLastAccessTime | Returns the data and time the specified file was last accessed. | |
| GetLastWriteTime | Returns the data and time the specified file was last written to. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Move | Moves the specified file to the destination location. | |
| Open(String, FileMode) | Opens a CrestronIO.FileStream on the specified path with read/write access. | |
| Open(String, FileMode, FileAccess) | Opens a CrestronIO.FileStream on the specified path, with the specified mode and access. | |
| Open(String, FileMode, FileAccess, FileShare) | Opens a CrestronIO.FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option. | |
| OpenRead | Opens an existing file for reading. | |
| OpenText | Opens an existing UTF-8 encoded text file for reading. | |
| OpenWrite | Opens an existing file for writing. | |
| ReadToEnd | Function to Read an entire file and return it as a string | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |