The text file 'Log.txt' is present in 'Doc' folder inside the application folder.
Now I want to create a text file with a time stamp every time the User runs the application and then write contents into it. How do I do this?
you can also try this it would constitute for a lot less coding
#here you can format the date string anyway you want
time_stamp = time.strftime('%Y-%m-%d %H:%M:%S', (time.localtime(time.time())))
#output for time_stamp -> '2009-07-08 14:22:41'
#and format the text file name like such
strFile = "Log_%s.txt"%time_stamp