Convert .txt to .xml

semiflame

New Member
I am looking for a way in C# to input a text file and output an xml. After some searching, I have found ways to input strings and output as xml, and by hand input some text into a C# source code, and output as xml, but not to import a text file and output. I need this as I have an application that saves some computer-specific info to a txt file. I would like to make a C# program that takes this .txt and outputs it as .xml . All .txt files will have the same format. If possible I would like it to output to something like:\[code\]<Data> <Info>#</Info>\[/code\]All the contents of the text file would output into the # area. Thank you for the help!
 
Back
Top