Andromo - Start Making Apps - Free Signup

Announcement

Collapse

New Forum Software

If you're here, you've found the new home for our forums. There will be some bugs to iron out, so thanks for your patience...
See more
See less

Writing to a log file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Comment


    • #3
      Wow. Great stuff. Thanks!

      Comment


      • #4
        You're welcome

        Comment

        Working...
        X