Fclose

From SA-MP Wiki

Jump to: navigation, search

Fclose


Closes a file (stop reading/writing).


Parameters:
(name[])
name[]The file to close


Returns1 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.

Personal tools