openplanet Download Openplanet Login with ManiaPlanet

IO group

Enums

IO::FileMode

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

Classes

IO::File

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.