how can i determine the number of characters in an input file?
thanx in advance!
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.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.