fstream

Jacob Smith jnsmith@utmb.edu
Thu Apr 15 18:13:00 GMT 2004


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.



More information about the Gcc-help mailing list