SimpleScript

Documentation - S.file_write

Description

Will replace the content in a file with new content. This is part of the file system functions. Improper use of the file system functions can lead to loss of data.

Parameters

file

Path and file name of a file to be affected by the function. File path is relative to the set web folder starting with a forward slash /.

string

Content that will be entered into the file.

Changelog

Examples

Normal

s.file_write("/file.txt","Hello world")