Max file size

Hello,

How do I determine what the max input file size is for my implementation of the standard library?

I guess what I am getting at is a 32-bit file pointer can access up to a 4GB file, what about files greater than 4GB? Does the standard library allow access for larger files?

Thanks in advance.

cppdna
Hello again,

I would like to know what limitations there are for file access. How would do I report a position or seek to a position greater than 4GB (using unsigned 32-bit pointer)? Is this the max file size I can access?

Thanks,

cppdna
Actually, the limit is 2 GiB-1 B. The parameter is a signed long.
If you need bigger files, you'll just have to deal with system calls.
Thx helios,

I have been trying to avoid the Win32 API for future portability reasons. However I would like to extend past the 2GB limit, so I may have to bite the bullet. :)

thanks again

cppdna
Topic archived. No new replies allowed.