Skip to main content

File Manager

Introduction

The File Manager provides an easy way to save and load files. It simplifies saving to just one call.

Methods

MethodDescription
GetCustomFolderPathReturns a custom system folder.
TrimPathEndReturns a trimmed path by the specified amount from end.
TrimPathStartReturns a trimmed path by the specified amount from start.
DirectoryExistsReturns true if the specified directory exists.
FileExistsReturns true if the specified file exists.
SaveFileBinarySaves a file in binary.
TrySaveFileBinaryReturns true if it manages to save a file in binary.
LoadFileBinaryLoads a file in binary.
TryLoadFileBinaryReturns true if it manages to load a file in binary.
SaveFileJSONSaves a file in JSON.
TrySaveFileJSONReturns true if it manages to save a file in JSON.
ReadFileJSONLoads a file in JSON.
TryReadFileJSONReturns true if it manages to load a file in JSON.
SaveFileWriterSaves a file with File Writer.
TrySaveFileWriterReturns true if it manages to save a file with File Writer.
LoadFileWriterLoads a file with File Writer.
TryLoadFileWriterReturns true if it manages to load a file with File Writer.
DeleteFileDeletes the specified file.
DeleteFolderDeletes the specified directory with it's contents.
DeleteDirectoryDeletes the specified directory, will throw an exception if it isn't empty.
CreateDirectoryCreates a directory in the specified path.