File library ​
No description available
Functions ​
mnscript
StringResult File.Append(string, string, string)
- Appends a string onto a file.
mnscript
StringResult File.CreateDir(string, string)
- Created a directory.
mnscript
StringResult File.Delete(string, string)
- Deletes a file in a directory.
mnscript
bool File.DirectoryExists(string)
- Returns whether the directory exists.
- Returns whether the file exists in the directory.
- Returns an array of files in the given directory.
mnscript
string[] File.FindFilesWithExt(string, string)
- Returns an array of files in the given directory with a certain extension.
mnscript
string[] File.FindFolders(string)
- Returns an array of folders in the given directory.
mnscript
number File.GetDiskCapacity()
- Returns the capacity of the disk in bytes.
mnscript
number File.GetUsedCapacity()
- Returns the used capacity of the disk in bytes.
mnscript
StringResult File.Read(string, string)
- Reads the contents of a file.
mnscript
StringResult File.RemoveDir(string, string)
- Deletes a directory.
- Returns the size of the file in bytes.
mnscript
StringResult File.Write(string, string, string)
- Writes / overrides a file.