I am using C++ Borland 5 to read from a text file containg a column of float numbers (using FILE *stream). I try to save the pointer while reading the text file using the following command
long Location;
Location=ftell(stream);
Strangely enough Location return with a negative number. The program continue reading, but the Location variable is in negative.
I used the same code in C++ Builder 3, Location return with positive number. Why is that?
I need this variable so I can save the last number I read in the column when I return to the pogram.
long Location;
Location=ftell(stream);
Strangely enough Location return with a negative number. The program continue reading, but the Location variable is in negative.
I used the same code in C++ Builder 3, Location return with positive number. Why is that?
I need this variable so I can save the last number I read in the column when I return to the pogram.