Method | Description | |
---|---|---|
CompareTo ( this file1, |
Compares two files against one another
|
|
DriveInfo ( this file ) : |
Gets the drive information for a file
|
|
Execute ( this file, |
Executes the file
|
|
Execute ( this file, string arguments = "", string domain = "", string user = "", string password = "", ProcessWindowStyle windowStyle = ProcessWindowStyle.Normal, string workingDirectory = "" ) : |
Executes the file
|
|
Read ( this file ) : string |
Reads a file to the end as a string
|
|
ReadBinary ( this file ) : byte[] |
Reads a file to the end and returns a binary array
|
|
Save ( this file, byte content, FileMode mode = FileMode.Create ) : |
Saves a byte array to a file
|
|
Save ( this file, string content, FileMode mode = FileMode.Create, |
Saves a string to a file
|
|
SaveAsync ( this file, byte content, AsyncCallback callBack, object stateObject, FileMode mode = FileMode.Create ) : |
Saves a byte array to a file (asynchronously)
|
|
SaveAsync ( this file, string content, AsyncCallback callBack, object stateObject, FileMode mode = FileMode.Create, |
Saves a string to a file (asynchronously)
|
|
SetAttributes ( this file, FileAttributes attributes ) : |
Sets the attributes of a file
|
public static CompareTo ( this file1, |
||
file1 | this | First file |
file2 | Second file | |
return | bool |
public static DriveInfo ( this file ) : |
||
file | this | The file to get the drive info of |
return |
public static Execute ( this file, |
||
file | this | File to execute |
info | Info used to execute the file | |
return |
public static Execute ( this file, string arguments = "", string domain = "", string user = "", string password = "", ProcessWindowStyle windowStyle = ProcessWindowStyle.Normal, string workingDirectory = "" ) : |
||
file | this | File to execute |
arguments | string | Arguments sent to the executable |
domain | string | Domain of the user |
user | string | User to run the file as |
password | string | Password of the user |
windowStyle | ProcessWindowStyle | Window style |
workingDirectory | string | Working directory |
return |
public static Read ( this file ) : string | ||
file | this | File to read |
return | string |
public static ReadBinary ( this file ) : byte[] | ||
file | this | File to open |
return | byte[] |
public static Save ( this file, byte content, FileMode mode = FileMode.Create ) : |
||
file | this | File to save to |
content | byte | Content to save to the file |
mode | FileMode | Mode for saving the file (defaults to Create) |
return |
public static Save ( this file, string content, FileMode mode = FileMode.Create, |
||
file | this | File to save to |
content | string | Content to save to the file |
mode | FileMode | Mode for saving the file (defaults to Create) |
encodingUsing | Encoding that the content is using (defaults to ASCII) | |
return |
public static SaveAsync ( this file, byte content, AsyncCallback callBack, object stateObject, FileMode mode = FileMode.Create ) : |
||
file | this | File to save to |
content | byte | Content to save to the file |
callBack | AsyncCallback | Call back function |
stateObject | object | State object |
mode | FileMode | Mode for saving the file (defaults to Create) |
return |
public static SaveAsync ( this file, string content, AsyncCallback callBack, object stateObject, FileMode mode = FileMode.Create, |
||
file | this | File to save to |
content | string | Content to save to the file |
callBack | AsyncCallback | Call back function |
stateObject | object | State object |
mode | FileMode | Mode for saving the file (defaults to Create) |
encodingUsing | Encoding that the content is using (defaults to ASCII) | |
return |
public static SetAttributes ( this file, FileAttributes attributes ) : |
||
file | this | File |
attributes | FileAttributes | Attributes to set |
return |