writeFile()
From Hack Wars Wiki
| Information for free function writeFile() | |
| Function | writeFile(string file, string data) |
| API | All |
| Description | Writes the data to the file, over-writing any data that was already there. |
Example
The following code will overwrite a file so that it only contains the line "Hello World!"
writeFile("test.txt", "Hello World!"); |
