Hi,
I have quite a large binary file( size ~ 10GB), which I want to direct access using istream::seekg. Now, on two systems I tried I could use a "long long unsigned int" value to position the stream buffer. But I can't figure out how to get the implementation limits for the conversion from integers to type streampos. Can anyone help?
Sincerely
Max
On 32-bit implementations, the standard library has a random access seek limit of 2^31-1 bytes (just below 2 GiB).
To access data beyond that limit, you have three choices:
1. Sequential access. You must access byte by byte using... get(), I think.
2. System calls.
3. Third party libraries. I've heard this is possible with Boost, but I haven't been able to confirm this.