[vtkusers] Re: vtkusers Digest, Vol 37, Issue 13

L.J. van Ruijven L.J.vanRuijven at amc.uva.nl
Mon May 14 03:03:15 EDT 2007


Hi Mike,

I use a FILE pointer together with the routines fopen( ... ), fclose
( ... ), fseek( ... ), fread( ... ), and fwrite( ... ). In win32 I 
managed to read files in memory slightly larger than 2GB. In windows 
X64 I have read files up to 6 GB using the same code.

Leo.



> Date: Fri, 11 May 2007 15:35:35 -0400
> From: Mike Jackson <imikejackson at gmail.com>
> Subject: [vtkusers] Files larger than 2GB on 32 Bit Windows (XP) 
> To: vtkusers at vtk.org
> Message-ID: <BB76311F-A0F3-4ACA-9A95-A053E92EFEBB at gmail.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> 
> So I got a rude awakening today. I tried to walk through a 3.1 GB  
> file on Windows XP. Note that I said "walk through" and not "read  
> into memory". The read failed just after the magic 32 bit limit. 
> Um..  
> so being a "novice" windows programmer ( I usually work in OS X or 
> 
> lInux) what are the possible ways to solve this?
>   Currently I am using the std::ifstream to read bytes out of the 
> 
> file, process those bytes to determine where to seekg() next.
> 
> Is there a way to tell windows that I want to use 64 bit values 
> for  
> std::Streamsize? Boost?
> 
> Any and all ideas welcome.
> 
> Thanks
> -- 
> Mike Jackson   Senior Research Engineer
> Innovative Management & Technology Services

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ljvanruijven.vcf
Type: text/x-vcard
Size: 262 bytes
Desc: Card for "L.J. van Ruijven" <L.J.vanRuijven at amc.uva.nl>
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070514/8e00cc3d/attachment.vcf>


More information about the vtkusers mailing list