I need to read the last modified date of various .txt files and keep track of the total number of lines in each. Some of the files come with empty lines in between the data that messed up the total number of lines.
I have been using the Balareva Easy Text Package to delete empty lines and obtain total number of lines in the file, the only problem is that my modified date changes to “Today” or the day that the bot is run.
To obtain the last modified date I am using : directory.GetLastWriteTime(FilePath)
Bot will run on Fridays and Mondays, is there a way to achieve all this without the last modified date changing?