Thread: Date and time stamp in printing to a file

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    13

    Date and time stamp in printing to a file

    Can anyone tell me how to put a date and time stamp when writing to a file in C? I searched brefily but was unsucessful finding information on the subject.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    asctime()
    strftime()
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    13
    Thank you

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Sending an email in C program
    By Moony in forum C Programming
    Replies: 28
    Last Post: 10-19-2006, 10:42 AM
  3. file's date and time stamp
    By Lord CyKill in forum C++ Programming
    Replies: 8
    Last Post: 04-10-2005, 04:04 AM
  4. How to read the date & time of a file?
    By megablue in forum C Programming
    Replies: 5
    Last Post: 11-03-2003, 11:58 PM