[RESOLVED] Renaming a file
How would I go about doing that? I'm pretty sure it would take 2 parameters like this
Code:
renameMethod("originalFileName", "newFileName");
But I do not know the method that renames files.
EDIT:
Nvrm found out how.
Had to add
to the top then use
Code:
File.Move("originalFileName and directory", "NewfileNameAndDirectory");
I just make the the dircetory the same and rename the file like so.
Code:
File.Move("C:\\Bender.txt", "C:\\Bender2.txt");
and the renames "Bender.txt" to "Bender2.txt"
Re: [RESOLVED] Renaming a file
Have a look at the System.IO.File class