file renaming
-
plz plz plz help me. someone out there must know how to rename a file. thats is the only thing standing in the way of my class. i had a look on msdn but could not find what i was looking for.
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
plz plz plz help me. someone out there must know how to rename a file. thats is the only thing standing in the way of my class. i had a look on msdn but could not find what i was looking for.
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors."Use System.IO.File.Move(originalName, newName); After all, renaming is just moving it to the same folder with a different name.
-
plz plz plz help me. someone out there must know how to rename a file. thats is the only thing standing in the way of my class. i had a look on msdn but could not find what i was looking for.
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors."Hi Very easy indeed :) From the static methods in the File class. e.g.
File.Move(oldfilename, newfilename);
Moving has exactly the same effect as renaming except that you can rename to any path. But just to rename keep the paths the same. :) Now go finish that class!:-D READ MSDN