J
J. Marshall Latham
I can't seem to find any resources to help me change a filename using C#. I
see a Path.ChangeExtension, but it only takes the full path as a string and
changes that string. It doesn't actually change the file (at least not from
what I have seen). I tried moving the file into the same directory with a
different name and totally lost my file. I am about to try moving it to
another directory and then moving it back with the new name. All I really
want to do is change the extension on the file from .tmp to .txt. Can
someone tell me how I can use C# code to change the name of a file. I
apologize if this is too elementary for this news group.
Thanks for your help,
JML
see a Path.ChangeExtension, but it only takes the full path as a string and
changes that string. It doesn't actually change the file (at least not from
what I have seen). I tried moving the file into the same directory with a
different name and totally lost my file. I am about to try moving it to
another directory and then moving it back with the new name. All I really
want to do is change the extension on the file from .tmp to .txt. Can
someone tell me how I can use C# code to change the name of a file. I
apologize if this is too elementary for this news group.
Thanks for your help,
JML