Flength

From SA-MP Wiki

Jump to: navigation, search

Flength


Checks the length of a file which is already opened.


Parameters:
(handle[])
handle[]The File handle to use, opened by fopen().


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

Personal tools