tags:

views:

237

answers:

1

what strategy should i use if i have an implimentation of std::fstream with 32-bit std::streampos? If i want to move position i can do it in several steps(10gb - 10 times +1gb). How can i get position? Or should i keep current position in some variable outside fstream?

ps i can't change the implimentation of stl.

+1  A: 

Keeping track of the current position yourself is the most straight-forward answer, if you're unable to addle the STL. If your compiler support the long long type, I'd go with that.

Chris