CreateFile

This function creates a new file on the device's hard drive.

Syntax

Parameters

Returns

Returns true if the file was created, otherwise false is returned.

Remarks

This function will have no effect if Lua sandboxing is enabled.

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);

return 0;
}