Re: getfileinfo File Size?

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

robby1066 wrote:
> 
> 
> I've been searching all through the documentation and forums for an answer to
> this.
> 
> Can someone point me in the direction of a straightforward way to get a
> non-open file's
> filesize? it seems like it should get returned with the getfileinfo function,
> but I
> can't seem to find any documenation on it?
> 
> Thanks!
> 
Have you considered using the Euphoria dir() function?  This returns a 
sequence for each directory entry returned and the size of a member
of each entry's sequence.

For example

sequence file_info

file_info = dir("C:
autoexec.bat") printf(1, "File size: %d", file_info[1][D_SIZE]) <\eucode>

HTH,

Jonas }}}

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

Search



Quick Links

User menu

Not signed in.

Misc Menu