how to retrieve a row data to individual string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blessonin
    New Member
    • Jan 2008
    • 5

    how to retrieve a row data to individual string

    hi all,
    I am new to vb.net and i want to know how to retrieve a string from a row which is seperated by spaces in a text file using split function in vb.net 2005
    for eg i am having data like this
    name phno
    aaa 1111
    bbb 222
    ccc 333
    pls reply to my question as fast as possible
    thanks in advance
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by blessonin
    hi all,
    I am new to vb.net and i want to know how to retrieve a string from a row which is seperated by spaces in a text file using split function in vb.net 2005
    for eg i am having data like this
    name phno
    aaa 1111
    bbb 222
    ccc 333
    pls reply to my question as fast as possible
    thanks in advance
    What code have you tried so far?

    Comment

    • kunal pawar
      Contributor
      • Oct 2007
      • 297

      #3
      You want to split text

      Dim str as string

      str="aaa 000"

      Dim Arr = str.split(" ")

      Comment

      Working...