Hi there,
Im writing a program that creates backups of log files (simply by appending the date and time as a prefix to the log file)

Another feature I would like is to cap the accumulated files sizes of those logs (in other words the total size of all log files should be no more than 500MB)

Does anyone have an idea on how I could access the size of each of the logs in a particular directory or location, my program need to be able to run on Win32 and Unix, also I need to be as memory friendly as possible.

Cheers,
Dave.