2012/9/15 Przemek Klosowski <przemek.klosow...@gmail.com>: > On Sat, Sep 15, 2012, Viesturs Lācis <viesturs.la...@gmail.com> wrote >> What is the syntax to put current date in the file name. In Your >> example the file name is xyz. > > import datetime > open("xyz."+datetime.date.today().isoformat(),"a") > >> And how can I specify the folder, in which the file is saved? > > directory="/tmp/" > open(directory+"xyz."+datetime.date.today().isoformat(),"a")
Thanks for the suggestions! I expect to start some work on this by the end of the next week, so I will post more questions as they will arise. -- Viesturs If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users