开发者

Convert Text file to XML

开发者 https://www.devze.com 2023-01-02 17:04 出处:网络
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.

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";
0

精彩评论

暂无评论...
验证码 换一张
取 消