Date and time stamp in printing to a file

This is a discussion on Date and time stamp in printing to a file within the C Programming forums, part of the General Programming Boards category; Can anyone tell me how to put a date and time stamp when writing to a file in C? I ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 10:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21