Skip to content

File library ​

No description available

Functions ​

  • Appends a string onto a file.
  • Created a directory.
  • Deletes a file in a directory.
mnscript
bool File.DirectoryExists(string) 
  • Returns whether the directory exists.
mnscript
bool File.Exists(string, string) 
  • Returns whether the file exists in the directory.
mnscript
string[] File.FindFiles(string) 
  • Returns an array of files in the given directory.
  • 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.
  • Deletes a directory.
mnscript
number File.Size(string, string) 
  • Returns the size of the file in bytes.
  • Writes / overrides a file.