|
From: jose i. c. <ji...@ci...> - 2005-02-21 16:51:09
|
Are you asking how to code this or is there a c++ function that will do=20 this? I don't know of one in c++, but the posibilities of doing this wit= h=20 your program are endless (of course, depending on what you really want to= =20 do.) I will suggest, however, to look at the at command for both unix (m= an=20 at) and windows (help at). It will let the OS do that job for you instea= d=20 of you having to figure out the whole time/date problem. Plus, your progr= am=20 won't be running all the time, but instead, it will be run at the specifi= c=20 time that you want. ie, Windows: at next: tuesday createfile.exe Unix: at -q s -m -f bin/sendgaz 5:30 Tomorrow by the way, in Unix, there are different flavor of at/cron or other=20 utilities that could do this for you. I hope this helps. jos=E9 ----- Original Message -----=20 From: "Patel, Nilesh M" <Nil...@qu...> To: <dev...@li...> Sent: Monday, February 21, 2005 11:28 AM Subject: [Dev-C++] new file creation > > If there a way in c++ where I can have a data file being created everyd= ay=20 > or at a specific time/date. > Currently I am creating a new file after every 100th entry, which works= =20 > GREAT. > > I have searched online for some help, but unable to. Is there any synta= x=20 > or algorithms for creating a new file, giving a specific time or date. > > example, create a new file every month, year, etc. ????? > > any help will be greatful. > > > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > dev...@li... > Sent: Monday, February 21, 2005 10:52 AM > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #2324 - 6 msgs > > > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=CCk > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >=20 |