1. Finding size of 2G+ files
- Posted by michaelstee at yahoo.com Jul 20, 2001
- 349 views
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!
2. Re: Finding size of 2G+ files
- Posted by Robert Craig <rds at RapidEuphoria.com> Jul 21, 2001
- 342 views
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