Question Answered as of 3 Years Ago by
shadwickman you can also try this it would constitute for a lot less coding
import time
#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
baki100
Junior Poster in Training
79 posts since Apr 2009
Reputation Points: 12
Solved Threads: 14
Skill Endorsements: 0
if you're using windows then having file names with a colon(:) in it is not allowed and you'll get an exception
baki100
Junior Poster in Training
79 posts since Apr 2009
Reputation Points: 12
Solved Threads: 14
Skill Endorsements: 0