Koen Verbeeck (9/7/2016)
Brad Allison (9/7/2016)
Is it as simple as doing this: System.IO.File.Move(@"C:\From.txt", @"C:\TO.txt"); ?
Except I need the "TO.txt" file to be YYYYMMDD.csv
Yes, but be aware that the Move method cannot do an overwrite.
So what happens when the job runs next month?
I suggest adding "using System.IO;" in your Namespaces section, so that you can make your code a bit more snappy (File.Move rather than System.IO.File.Move ...).
If you want to bullet-proof your code a little, add a section to delete the target file if it exists, before doing the File.Move. Something like this:
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.