Fremove
From SA-MP Wiki
Fremove
Deletes an existing file from your scriptfiles folder.
(name[])
| name[] | The file to delete |
| Returns | TRUE or 1 on success or FALSE or 0 on failure. (Not verified!) |
Note: The file pointer must be valid.
new File:example = fopen("Hello.txt", io_append); fwrite(example, "Hi there!"); fremove(example); print("Why did I create it in the first place?");
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- fopen: Open a file.
- fclose: Close a file.
