Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
read txt, write to xml in c#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Kev D
16y
2.2k
1
Reply
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 !
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Click event in DOM document
What Atribute to set to show it structured in PropertiyGrid?