Skip to main content
Participant
June 19, 2012
Question

get size of file

  • June 19, 2012
  • 1 reply
  • 505 views

My main.asc file does some logging within it using the file class.  That log file has gotten very big and I'm trying to implement a solution to back up the file when it gets too big.  Does anyone know how to check the size of a text file from within the main.asc file?

This topic has been closed for replies.

1 reply

June 20, 2012

Hi,

You can use the File.length property to check the number of bytes in the file. See here for more information : http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7eac.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7faf

Hope this helps.

Thanks,

Apurva

Participant
June 20, 2012

Thanks a lot.  That did it.