Re: [Dev-C++] Time stamping an output file.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jason H. <jas...@bt...> - 2002-02-25 18:55:42
|
If you want to obtain the date in a way that is standard to C or C++ =
then you can use the functions supplied in the <time.h> header. I leave =
it to you to look at what it supplies in whatever C reference material =
you have (I'm too tired).
Jason.
----- Original Message -----=20
From: Benjamin Wheeless=20
To: dev...@so...=20
Sent: Monday, February 25, 2002 5:25 PM
Subject: [Dev-C++] Time stamping an output file.
Good afternoon,
Quick question that is probably much easier than I'm thinking it is...
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)...
For example:
-output file name =3D hsloan.txt
-would like output file name =3D hsloanYYYYMMDD.txt
(where YYYYMMDD =3D (year)(month)(date) of course)
Keep in mind that I'm using: fopen( "C:\\temp\\hsloan.txt", "w" =
) ;
Any thoughts/suggestions?
P.S. -- Ioannis, can I cash in some of those EuroCents now?
Benjamin Wheeless
Network Systems - Delta Airlines, Inc.
Atlanta, GA - USA 30320
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
-------------------------------------------------------------------------=
-----
MSN Photos is the easiest way to share and print your photos: Click =
Here
_______________________________________________ Dev-cpp-users mailing =
list Dev...@li... =
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|