开发者

Convert Text file to XML

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜