Determine File Size

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Determine File Size

Post by warrenk » Tue Oct 07, 2008 4:55 pm

What is the best way to determine the size of a file and put the value in a variable?

Thanks!
Warren

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Tue Oct 07, 2008 5:05 pm

Check out the "detailed files" entry in the Dictionary. Item 2 of each line of the returned value contains the file's size in bytes.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Tue Oct 07, 2008 5:11 pm

Thanks Richard! This is perfect!

Warren

Post Reply