delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/10:50:06

Message-Id: <3.0.1.32.19970730155432.0058f580@mailhost.sm.ic.ac.uk>
Date: Wed, 30 Jul 1997 15:54:32 +0100
To: djgpp AT delorie DOT com
From: Paul Dixon <p DOT dixon AT ic DOT ac DOT uk>
Subject: Re: ifstream (FILENAME, ios::binary). Can't Read!!!
Mime-Version: 1.0

>ALL THIS IS MOOT. You can't even have a file larger than 2^32. DOS (and I
>think Unix also) defines the file pointer as being 32 bits. So there is no
>possibility to have more than a 4GB file.
Not necessarily under the 32bit variants of Windows - I am not sure about Win95 (I never touch it if I can possibly avoid it) but WinNT3.51 and 4. both allow files larger than 2GB, and the Win32 native file operations use 64bit file pointers. I have no idea what would happen if you tried to access these with regular file ops - my guess is that sequential read would work but tell() / seek() would get wrapped.
Paul
--------------------------------------------------------------------
Paul Dixon                                   Email: p DOT dixon AT ic DOT ac DOT uk
Software Engineer                          tel:   +44 (171) 725 1098
Academic Dept of Paediatrics               fax:   +44 (171) 725 6284
St Mary's Hospital Medical School
 (a constituent college of 
                  Imperial College of Science, Technology & Medicine)
Norfolk Place, London W2 1PG, UK
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019