how can i find out how many characters are in a text file. I tried the following method:
#include <stdio.h>
int main(){
long size;
fseek( fopen("file.txt", "r+a"), 0, SEEK_END );
printf( "%ld", ftell( fopen("file.txt", "r+a") ) );
return 0;
}
But outputs 0(The text file is not empty)