Flength
From SA-MP Wiki
Flength
Checks the length of a file which is already opened.
(handle[])
| handle[] | The File handle to use, opened by fopen(). |
| Returns | The length of the file, in bytes. |
new File:example = fopen("file.txt", io_write); fwrite(example, "I just wrote here!"); printf("The size of the file is %i", flenght(example)); fclose(example);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- fclose: Close a file.
- fopen: Open a file.
