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 »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld »

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 »

Thanks Richard! This is perfect!

Warren
Post Reply