Re: Get Open file size
- Posted by Aku <aku at inbox.as> Nov 29, 2000
- 368 views
Thanks very much for your help. ______________________________________________________________________ O> as I'm coding an entire library for random access files, i think know this one. you can perform a seek command on the open file that will put the file pointer at the end of the file. then read the O> file pointer again and you have the current size. use code similar to this. O> -- UNtested code follows O> fn = open("data.fil","r") O> -- puts pointer at end of file O> tempatom = seek(fn,-1) O> -- error handling for tempatom goes here O> -- now get the current file pointer O> filesize = where(fn) O> At 08:28 AM 11/29/00 +0700, you wrote: >>How can I get file size/file length of opened file in eu? >>In VB I can use LOF(fn). By using dir() I only get size when the file >>last closed.