FileInfo Methods |
The FileInfo type exposes the following members.
Name | Description | |
---|---|---|
Create | Creates a file. | |
Delete | Permanently deletes a file. (Overrides FileSystemInfoDelete.) | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Open(FileMode) | Opens a file in the specified mode. | |
Open(FileMode, FileAccess) | Opens a file in the specified mode with read, write, or read/write 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 | Creates a read-only FileStream. | |
OpenText | Creates a StreamReader with UTF8 encoding that reads from an existing text file. | |
OpenWrite | Creates a write-only FileStream. | |
Refresh | Refreshes the state of the object. (Inherited from FileSystemInfo.) | |
ToString | Returns the path as a string. (Overrides ObjectToString.) |