how can i determine the number of characters in an input file?
thanx in advance!
Printable View
how can i determine the number of characters in an input file?
thanx in advance!
In C you can use fseek with the SEEK_END parameter to set the filepointer to the end of the file and then call ftell on it to know how many bytes are in the file. Call rewind to reset the filepointer to the start after having read the filesize, to start reading the file.