File Manager
Introduction
The File Manager provides an easy way to save and load files. It simplifies saving to just one call.
Methods
Method | Description |
---|---|
GetCustomFolderPath | Returns a custom system folder. |
TrimPathEnd | Returns a trimmed path by the specified amount from end. |
TrimPathStart | Returns a trimmed path by the specified amount from start. |
DirectoryExists | Returns true if the specified directory exists. |
FileExists | Returns true if the specified file exists. |
SaveFileBinary | Saves a file in binary. |
TrySaveFileBinary | Returns true if it manages to save a file in binary. |
LoadFileBinary | Loads a file in binary. |
TryLoadFileBinary | Returns true if it manages to load a file in binary. |
SaveFileJSON | Saves a file in JSON. |
TrySaveFileJSON | Returns true if it manages to save a file in JSON. |
ReadFileJSON | Loads a file in JSON. |
TryReadFileJSON | Returns true if it manages to load a file in JSON. |
SaveFileWriter | Saves a file with File Writer. |
TrySaveFileWriter | Returns true if it manages to save a file with File Writer. |
LoadFileWriter | Loads a file with File Writer. |
TryLoadFileWriter | Returns true if it manages to load a file with File Writer. |
DeleteFile | Deletes the specified file. |
DeleteFolder | Deletes the specified directory with it's contents. |
DeleteDirectory | Deletes the specified directory, will throw an exception if it isn't empty. |
CreateDirectory | Creates a directory in the specified path. |