Results 1 to 5 of 5

Thread: Reading comma delimited text file

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Reading comma delimited text file

    In VB 6.0 this is how I would get input from a comma delimited text file and put the values in variables.

    Input #1, CARD, Dat, TIM, site, ref, PROD, unit, uprice, total, addi

    How would I do this in VB.Net?

    Thanks
    David Wilhelm

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    The Split function is the easiest way imo.
    ms-help://MS.VSCC/MS.MSDNVS/vblr7/html/vafctSplit.htm

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Haven't seen you post in a lil while Slow_Learner, glad to see you back again. Either that or I'm getting old and you did post and I literally didn't see it.

  4. #4
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518

    Talking

    Nope, I had to take a little break due to a sort of information hemorrhage kind of thing. Thanks, it's good to be back

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Yeah I know what you mean sometimes you just need a break for a while.

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