[Gambas-user] File Properties

gambix at ...2... gambix at ...2...
Sun Jun 27 16:08:52 CEST 2004


>I want to read the size of a file into a string.  Browsing the WIKI tells
>me
>that "GbFileRSize" does this.  However, I am having problems working out
>how
>to use it!
 
>Any help?  Thanks!

HI

Use :
 Stat(myFile).Size

Or

With Stat(myFile)

myvar = .Size

end With
Look at the FSupSelector class in the ide source for more info


See about Stat() function in the wiki help

http://binara.com/gambas-wiki/bin/view/Gambas/GambasStat
http://binara.com/gambas-wiki/bin/view/Gambas/GambasComponentGbFile

regards,
Fabien Bodard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 53 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040627/6fed5920/attachment.obj>


More information about the User mailing list