我需要重命名我TEXTFILES为.old格式。 我是新的C#和不知道。 我还没有尝试过什么还没有,因为我甚至不知道从哪里开始,所以请没有评论你尝试过什么迄今为止?
解决方案 System.IO.File.Move(oldFileName,Path.ChangeExtension(oldFileName,'老'));
I need to rename my textfiles to .old format. I'm new to C# and have no idea. I haven't tried nothing yet because I don't even know where to start, so please no comments "What have you tried so far"?
解决方案System.IO.File.Move(oldFileName, Path.ChangeExtension(oldFileName, 'old'));