GetFileSize

This functions gets a file's size.

Syntax

Parameters

Returns

Returns the size of the specified file, in bytes.

Example

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
//Create a file
std::string path = "MyFile.txt";
FileSystem::CreateFile(path);

//This will print out '0' because the file was just created
System::Print(FileSystem::GetFileSize(path));

return 0;
}