The FileManager type exposes the following members.

Methods

  NameDescription
Public methodDeleteFile
Delete file
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExistFile
File Existance
Public methodStatic memberExists
If the given file or directory exists
Public methodFileLines
Returns the number of lines inside a text file
Public methodStatic memberFileSize
Get the size of a file
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetPath
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 "\".
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsFileNameValid
Check if filename is valid (does not contain invalid characters)
Public methodStatic memberIsReadOnly
Returns true if the given file is Read only
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadBinaryFile
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.
Public methodReadFile(String)
Reads a Text File
Public methodReadFile(String, Encoding)
Reads a Text File
Public methodReadFileLines(String)
Reads a Text File Line by Line. Return an array of strings, using the default encoding.
Public methodReadFileLines(String, Encoding)
Reads a Text File Line by Line. Return an array of strings.
Public methodReadTextFile(String)
Reads a text file.
Public methodReadTextFile(String, Encoding)
Reads a text file.
Public methodRenameFile
Rename a file
Public methodSaveFile(String, String)
Save File
Public methodSaveFile(String, String, Boolean)
Save File as UTF-8 text file
Public methodSetHidden
Set the attribute read only of a file
Public methodSetReadOnly
Set the attribute read only of a file
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWriteBinaryFile
Write a binary file

See Also