Fremove
From SA-MP Wiki
Delete a file from the scriptfiles folder.
(name[])
| name[] | The path of the file to delete |
| Returns | 1 on success, 0 on failure. (Not verified!) |
| Note: If the file you are attempting to delete is open at the time that fremove is used, it will not work. You must first use fclose before you try deleting it, that is, if you have used fopen. |
fremove("Example.txt");
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- fopen: Open a file.
- fclose: Close a file.
- fwrite: Write to a file.
- fread: Read a file.
