Fclose

From SA-MP Wiki

Jump to: navigation, search

Fclose


Closes (stop reading/writing) a file.

ReturnsTRUE or 1 on success or FALSE or 0 on failure. (Not verified!)


Parameters:
(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.

Personal tools