Back

ReadFile

ReadFile reads a text file from internal or external file storage.

app.ReadFile( file, encoding )

Example - Example



function OnStart()
{
    txt = app.ReadFile( "/Sys/Html/Page.htm" );
    app.ShowPopup( txt );
}
    Copy     Copy All       Run      

string - path to file or folder ( "/absolute/..." or "relative/..." )
string - "utf"