function OnStart()
{
app.WriteFile( "file.txt", "Hello world, exciting world." );
app.ReplaceInFile( "file.txt", "(\\w+)o (\\w+)", "$2 is $1" );
app.Alert( app.ReadFile( "file.txt" ), "Result" );
}
from native import app
def OnStart():
app.WriteFile("file.txt", "Hello world, exciting world.")
app.ReplaceInFile("file.txt", "(\\w+)o (\\w+)", "$2 is $1")
app.Alert(app.ReadFile("file.txt"), "Result")