Re: Finding size of 2G+ files
- Posted by Robert Craig <rds at RapidEuphoria.com> Jul 21, 2001
- 324 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