This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: fstream
- From: lrtaylor at micron dot com
- To: <jnsmith at utmb dot edu>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 15 Apr 2004 12:16:33 -0600
- Subject: RE: fstream
I believe the size of the files you can open depend on your operating
system and file system rather than on C++. For example, I believe that
Windows generally doesn't support files larger than 2 GB. I believe
most 32-bit Linux distributions also don't generally support files
larger than 2GB out of the box. Without knowing what platform and type
of file system that you're running on, it's hard to say much more,
though.
Cheers,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Jacob Smith
Sent: Thursday, April 15, 2004 12:14 PM
To: gcc-help@gcc.gnu.org
Subject: fstream
How would I go about finding out the largest file stream I can open
(read/write) on my system (P4)? I've ascertained that the
std::fstream::pos_type has a sizeof() 8, but anytime I access somewhere
beyond the 2**31-bit mark, the state of the stream becomes
good()==false. If the maximum size is upper-bound by the 2**31-bit mark
(or whatever), is there anything in the standard libraries to let me
open larger files (i.e. a memory-map or sumsuch)?
thanks,
-j.