Results 1 to 2 of 2

Thread: Organizing information from a text file in a list

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    1

    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?

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    17

    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
  •  



Click Here to Expand Forum to Full Width