Fclose
From SA-MP Wiki
Fclose
Closes a file (stop reading/writing).
(name[])
| name[] | The file to close |
| Returns | 1 on success 0 on failure. (Not verified!) |
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.
- fwrite: Write to a file.
- fread: Read a file.
- fremove: Remove a file.
