ftell function-get the position of the file stream position specifier
You can use the ftell function to get the position pointed to by the file stream position specifier. You can use it by reading the stdio.h header.
#include <stdio.h> long int ftell (FILE * fp);
The argument is a file stream. The return value is the position pointed to by the file stream's position specifier.
Sample to get the file size
Please refer to the fseek function article for a sample to get the file size using the fseek and ftell functions.