Back

SaveText

SaveText saves a text value to the user's storage space under valueName. Use this method when saving and loading user preferences.

app.SaveText( name, value, file )

Example - Example



function OnStart()
{
    name = app.LoadText( "MyName", "Bill" );
    app.ShowPopup( name );

    if( name=="Bill" ) name = "Fred";
    else name = "Bill";
    app.SaveText( "MyName", name );
}
    Copy     Copy All       Run      

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