IO group



The file mode to put the file stream in.

IO::FileMode::None = 0
IO::FileMode::Read = 1
IO::FileMode::Write = 2
IO::FileMode::Append = 3


Manages a file reading or writing stream.
Global functions

string IO::FromDataFolder(const string&in filename)

Gets the absolute path for a file in the data folder. This is typically C:\Users\Username\Openplanet4

bool IO::FileExists(const string&in filename)

Checks if the given path exists.

uint64 IO::FileSize(const string&in filename)

Gets the size of the given file.

void IO::Delete(const string&in filename)

Deletes the given file.