The following tables list the members exposed by the File type.
Name | Description | |
---|---|---|
AppendAllText(string, string) | Append all text | |
Copy(string, string) | Copy a file | |
Copy(string, string, bool) | Copy a file | |
Create(string) | Create a file | |
Delete(string, bool) | Delete a file | |
Equals(Object) | Determines whether the specified object is equal to the current object. (inherited from Object). | |
Exists(string) | Does a file exist? | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object). | |
GetAttributes(string) | Get file attributes | |
GetCreationTime(string) | Get the creation time | |
GetCreationTimeUtc(string) | Get the creation utc time | |
GetHashCode | Serves as the default hash function. (inherited from Object). | |
GetLastAccessTime(string) | Get the last access time | |
GetLastAccessTimeUtc(string) | Get the last access time in utc | |
GetLastWriteTime(string) | Get the last write time | |
GetLastWriteTimeUtc(string) | Get the last write time | |
GetType | Gets the Type of the current instance. (inherited from Object). | |
MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object). | |
Move(string, string) | Move a file | |
Open(string, FileMode) | Open a file | |
Open(string, FileMode, FileAccess) | Open a file | |
Open(string, FileMode, FileAccess, FileShare) | Open a file | |
OpenRead(string) | Open a file for reading | |
OpenWrite(string) | Open a file for writing | |
ReadAllBytes(string) | Read all bytes | |
ReadAllLines(string) | Read all lines | |
ReadAllText(string) | Read all lines | |
SafeDelete(string) | Delete - but swallow any exceptions - usually useful for the temp space | |
SetAttributes(string, FileAttributes) | Set some file attributes | |
SetCreationTime(string, DateTime) | Set the creation time | |
SetCreationTimeUtc(string, DateTime) | Set the creation time in utc | |
SetLastWriteTime(string, DateTime) | Set the last write time | |
SetLastWriteTimeUtc(string, DateTime) | Set the last write time in utc | |
ToString | Returns a string that represents the current object. (inherited from Object). | |
WriteAllBytes(string, byte[]) | Write all bytes | |
WriteAllLines(string, IEnumerable<String>) | Write all lines | |
WriteAllLines(string, string[]) | Write all lines | |
WriteAllText(string, string) | Write all text | |
WriteAllText(string, string, Encoding) | Write all text |