Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pointer of A stream

Status
Not open for further replies.

AMQ

Programmer
May 22, 2002
1
AU
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top