1. Finding size of 2G+ files

Hi, folks!
I would like to get the filesize of files larger than 2Gig. Eu's seek() 
won't let me. Is there a way to check the file's attributes to get this 
info. 

Related: The library entry for seek() says "It is possible to seek past 
the end of a file. In this case undefined bytes will be added to the 
file to make it long enough for the seek." Is that true with files 
opened for read only?

Thanks!

new topic     » topic index » view message » categorize

2. Re: Finding size of 2G+ files

michaelstee writes:
> Related: The library entry for seek() says "It is possible to seek past 
> the end of a file. In this case undefined bytes will be added to the 
> file to make it long enough for the seek." Is that true with files 
> opened for read only?

No, the file must be opened for writing, and
you must actually write some data at the position
you seek to. The byte positions between the
former end of file and your data will be filled
with something (undefined).

I've updated the docs to make it clearer.

Thanks,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu