DLiteScript

io.writeFile

Writes data to the given file. Returns an error if the file does not exist.

Examples

1
io.writeFile("data.txt", "This is a new line.") // writes "This is a new line." to "data.txt"
Improve this page