i have an app that reads from a text file which has the date in the filename and is constantly written to every second of the day. At various stages my app reads all the new lines in the file and write them to a new file with additional data that is entered into a form.
However, the system that is writing to these files will create a new file every day at midnight so it is likely that i will need to use data from both files. I am going to put the name of the last file used into a text file and open that file but i also need to add 1 day to the date and check if that file exists. is there a quick and easy way of doing this in strftime
File Name examplesCode:checkdate = time.strftime('%Y_%m_%d') 2005_05_25