The FileManager type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| DeleteFile |
Delete file
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| ExistFile |
File Existance
| |
| Exists |
If the given file or directory exists
| |
| FileLines |
Returns the number of lines inside a text file
| |
| FileSize |
Get the size of a file
| |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetPath |
Return the path of a file, given its absolute path complete of file name.
It returns the string without the file name, and without the last "\".
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsFileNameValid |
Check if filename is valid (does not contain invalid characters)
| |
| IsReadOnly |
Returns true if the given file is Read only
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ReadBinaryFile |
Read a binary file. This method reads a small binary file.
Since it does not implement a cache, it is not suitable for large files.
| |
| ReadFile(String) |
Reads a Text File
| |
| ReadFile(String, Encoding) |
Reads a Text File
| |
| ReadFileLines(String) |
Reads a Text File Line by Line. Return an array of strings,
using the default encoding.
| |
| ReadFileLines(String, Encoding) |
Reads a Text File Line by Line. Return an array of strings.
| |
| ReadTextFile(String) |
Reads a text file.
| |
| ReadTextFile(String, Encoding) |
Reads a text file.
| |
| RenameFile |
Rename a file
| |
| SaveFile(String, String) |
Save File
| |
| SaveFile(String, String, Boolean) |
Save File as UTF-8 text file
| |
| SetHidden |
Set the attribute read only of a file
| |
| SetReadOnly |
Set the attribute read only of a file
| |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
| WriteBinaryFile |
Write a binary file
|
Properties
| Name | Description | |
|---|---|---|
| ErrorMessage |
Error Message. Every time it's called, reset ErrorMessage to "".
| |
| Reference |
Get the only instance of this class (singleton).
|