Files
Reads and writes whole files on disk. Relative paths resolve against basePath, the directory that holds the running executable, so assets shipped next to the game are found wherever it is started from. Absolute paths are used as given.
Has no sample because it needs a file on disk.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Returns the contents of the file at path, or null when the file does not exist, cannot be read, or is larger than Int.MAX_VALUE bytes.
Link copied to clipboard
Returns the contents of the file at path decoded as UTF-8, or null when the file does not exist, cannot be read, or is larger than Int.MAX_VALUE bytes. Malformed byte sequences become the replacement character U+FFFD.
Link copied to clipboard