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!

fscanf()

Status
Not open for further replies.

nimaata

Programmer
Jan 3, 2005
27
US
is there a way to read a file backwards with fscanf?
instead of starting from the beginning (rewind(*ptr)) and going to EOF, is there a way to start at the EOF, and go to the beginning?
 
No, there is no such way.
You may set read position via seek but it's not a backward i/o.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top