File |
The FileInfo type exposes the following members.
| Name | Description | |
|---|---|---|
| AppendText | Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo. | |
| CopyTo(String) | Copies the specified file to a new file location. | |
| CopyTo(String, Boolean) | Copies the specified file to a new file location with the option to overwrite. | |
| Create | Creates a file. | |
| CreateText | Creates a StreamWriter that writes a new text file. | |
| Delete |
Delete the file.
(Overrides FileSystemInfoDelete) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MoveTo | Moves the specified file to the destination with possibly a new file name. | |
| Open(FileMode) | Opens a file in the specified mode. | |
| Open(FileMode, FileAccess) | Opens the current file with the specified mode and access. | |
| Open(FileMode, FileAccess, FileShare) | Opens a file in the specified mode with read, write, or read/write access and the specified sharing option. | |
| OpenRead | Opens the current file with Read only access. | |
| OpenText | Creates a StreamReader with UTF8 encoding that reads from an existing text file. | |
| OpenWrite | Opens the current file with write only access. | |
| Refresh |
Refreshes the state of the object.
(Overrides FileSystemInfoRefresh) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |