File
From Pointui
This is a Global object. You must not create an instance of it as one is always available for your use.
Provides methods that can be used to manipulate files. NOTE: this is a global object so an instance is always available to use – you do not need to ever create additional instances.
Methods
void Write(String filename, String fileContents)
Writes a file that contains the supplied content. If the file doesn’t exist it will be created. If it already existed then the contents will be overwritten.
PARAMETERS
- filename – full path of the file to write the data to.
- fileContents – the string to write into the file.
void Read(String filename, String fileContents)
Reads the contents of a file into a String.
PARAMETERS
- filename – full path of the file to read.
- fileContents – the string to receive the contents of the file.
void CreateShortcut(String shortcutFilename, String targetFilename)
AVAILABLE SINCE: 2.0.22b Creates a .lnk shortcut file that points to a targetFilename.
bool Exists(String path)
Returns true if the path/file exists.
void Delete(String filename)
Deletes the specified file.
void Copy(String srcFilename, String destFilename)
AVAILABLE SINCE: 2.0.30b Copies the source file to the destination location, overwriting the destination file if it exists.
void Move(String srcFilename, String destFilename)
AVAILABLE SINCE: 2.0.30b Moves the source file to the destination location. The destFilename must not already exist.
