Back

WriteFile

WriteFile  writes a text file to internal or external file storage.

app.WriteFile( file, text, mode, encoding )

Example - Example



function OnStart()
{
    app.WriteFile( "/sdcard/wftest.txt", "Hello", "Append" );
}
    Copy     Copy All       Run      

string - path to file or folder ( "/absolute/..." or "relative/..." )
string
string - "Append" or "ASCII"
unknown