I have searched everywhere to find this answer but still can't find it.
I have a file in my Documents folder. I create and append a file with the same content in another folder. (Let's say Downloads). How do I give the new file the same name as the old file?
I just need help with naming the new file the same as the old. I already have it appending and sending to another folder. I'm using StreamReader to read the old file and StreamWriter to create the new file. I dont want to hard code a path to rename it, because there may be multiple files that I need to read.