Fclose
From SA-MP Wiki
Fclose
Closes (stop reading/writing) a file.
| Returns | TRUE or 1 on success or FALSE or 0 on failure. (Not verified!) |
(name[])
| name[] | The file to close |
Important note: The file pointer must be valid, and must point to a file successfully opened by fopen.
new File:example = fopen("Hello.txt", io_append); fwrite(example, "Hi there!"); fclose(example);
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.
