read txt, write to xml in c#
hello
i have a txt in following format:
1;name firstname;location;city;
2;name firstname;location;city;
.......
i would like to read this txt file and parse the output to xml like:
<user>
<id>1</id>
<name_firstname>name firstname</name_firstname>
....
</user>
<user>
<id>2</id>
..........
is this in anyway possible ? should i parse the txt as a csv (i know there's a csvreader) ?
i don't have much experience working with files
any help or code snippets are appreciated
thanks alot in advance !