Re: Finding size of 2G+ files

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu