write

write ( string path , string text ) : void

Write a text in a file on your disk (if the file already exist it is erased and replaced)

Tips

If you have an error, try to check the path exist, to do that, in debug mode, evaluate the pathDisk value and copy-paste it in the Windows Search (press Win and do Ctrl+V) and see if the file is displayed.

See also

writeEnd

Example


write(path("desktop")+"file.txt", "Sample text content");

Parameters

path

path to the file

text

to insert in the file