I need to 开发者_如何学Cconvert text file to XML file through C# application. Can any one provide me sample code.
You have not provided enough information to receive an answer.
What format is the text file?
What kind of XML do you want?
Unless you provide more information, here is the correct answer:
File.Move(@"C:\File.txt", @"C:\File.xml");
try this way:
File.Move("CurrentFileDirectory","NewFileDirectory");
CurrentFileDirectory = @"C:\Documents\YourFile.Text";
NewFileDirectory = @"c:\Documents\Yourfile.XML";
精彩评论