What is wrong? fgets
Posted on 1998-12-07
I have a program what read lines from a file.
if fgets (szBuffer, 82, FileIn)== NULL
loops ( get next line)
when executing this program:
MyProg MyTextFile ( param 1 is text file name)
It sometimes is okay and sometimes at the very last line of text it breaks with an error:
Line XX, token = 0: Out of Range
I did not put this debug mesg in, is it as compiler msg??
What do u think is the error?
Note: I hv a function that is called 'f2asc' that comverts my output file into binary code. It is called after reading the whole input file. Could it be this function???