clearFile()
From Hack Wars Wiki
| Information for free function clearFile() | |
| Function | clearFile(string file) |
| API | Attacking, Banking, FTP, Watch, HTTP |
| Description | Clears the contents of the text file pointed to by the filename (the full path is parsed). |
Additional Info
If the file is not found then it will display a pop up saying so. While this pop up is displayed the script is halted. After confirming the pop up the script will go on. No file will be created then.
Example
The following code will empty the file "test.txt"
clearFile("test.txt"); |
