[Dev-C++] Time stamping an output file.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Benjamin W. <ben...@ho...> - 2002-02-25 17:25:58
|
<html><div style='background-color:'><DIV></DIV> <DIV></DIV> <P>Good afternoon,</P> <P>Quick question that is probably much easier than I'm thinking it is...</P> <P>Does anyone out there know how to easily put a date stamp on an output file using C rather than using the environments shell? I know how to do it using Korn, but I'm working on WinNT and so I need the source code to do it rather than cmd.exe(unless cmd.exe can do it easier via a batch file or something)...<BR><BR>For example:<BR> -output file name = hsloan.txt<BR> -would like output file name = hsloanYYYYMMDD.txt<BR> (where YYYYMMDD = (year)(month)(date) of course)<BR><BR>Keep in mind that I'm using: fopen( "C:\\temp\\hsloan.txt", "w" ) ;</P> <P>Any thoughts/suggestions?</P> <P>P.S. -- Ioannis, can I cash in some of those EuroCents now?</P> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2>Benjamin Wheeless</FONT></DIV> <DIV></DIV> <DIV><FONT face="Geneva, Arial, Sans-serif" size=2><STRONG>Network Systems - Delta Airlines, Inc.</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>Atlanta, GA - USA 30320</STRONG></FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><STRONG>==============================</STRONG></FONT></DIV> <DIV></DIV> <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |