Writing to a log file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kmartin7
    Forum Member
    • Jun 2002
    • 57

    Writing to a log file

    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
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Code:
    TextFile.WriteFromString("C:\\Test.log", System.GetDate(DATE_FMT_US).."|"..System.GetTime(TIME_FMT_AMPM).."|".."Video Name Here" .. "\r\n", true);

    Comment

    • kmartin7
      Forum Member
      • Jun 2002
      • 57

      #3
      Wow. Great stuff. Thanks!

      Comment

      • Worm
        Indigo Rose Customer
        • Jul 2002
        • 3971

        #4
        You're welcome

        Comment

        Working...
        X