|
-
Feb 8th, 2012, 01:00 PM
#1
Thread Starter
New Member
Organizing information from a text file in a list
I'm new with this... I'm trying to make a program so I can open a text file, take the information in that file, and organize it in a list, but I can't figure out how to do it exactly.
In visual basic, how would I change this:
<NAME>Joe Somebody</NAME>
into:
Joe Somebody
I want to be able to ignore "<NAME>" and "</NAME>" and output "Joe Somebody" into the organized list, but I don't want it to work only with
Joe Somebody. I want it to work with other names too. I also want to be able to edit that information, and export it the same way as the text file.
Can that be done with Visual Basic?
-
Feb 8th, 2012, 02:48 PM
#2
Junior Member
Re: Organizing information from a text file in a list
Assuming <NAME>Joe Somebody</NAME> is in a variable eg strJS
Dim strVar as string = Replace(strJS,"<NAME>","")
strVar=Replace(strVar,"</NAME>","")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|