PDA

View Full Version : Writing to a log file



kmartin7
03-10-2004, 03:02 PM
I need to write to a log file each time a video is played through (date|time|videoName). So when a video finishes playing, I need to write an entry to a log file, something like:

03/10/2004|09:34:00|videoName

I have searched through the threads, and only find information on installation logs. Any ideas as to how best accomplish this?

Thanks,

Kurt

Worm
03-10-2004, 03:20 PM
TextFile.WriteFromString("C:\\Test.log", System.GetDate(DATE_FMT_US).."|"..System.GetTime(TIME_FMT_AMPM).."|".."Video Name Here" .. "\r\n", true);

kmartin7
03-10-2004, 04:02 PM
Wow. Great stuff. Thanks!

Worm
03-10-2004, 04:05 PM
You're welcome :)