Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Oct 2005
    Location
    Calgary, Alberta
    Posts
    205
    Thanks
    0
    Thanked 1 Time in 1 Post

    Reading a .csv file and parsing (.net express)

    was wondering if anyone has experience with reading a text file (csv format) and displaying the values of each section , , seperately to a textbox. If so please share a way to do this? I currently have a
    .csv file that is updated real time over the net. I would like to read the data seperatley into textbox's I have bumped in to some discussions about streamreader and was wondering if anyone has experience do this. thank you

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Reading a .csv file and parsing (.net express)

    I don't use .Net but in the old days, the ADO object model was a convenient way to read a .csv file as a table (ODBC Text Driver). There might be other new ways to parse them that are equally or more convenient.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Reading a .csv file and parsing (.net express)

    Have you tried creating and using a streamreader? It is designed for that kind of thing. You can create a data grid and populate it from the streamreader. It isn't clear from your message whether you want to "display" this in a form or a report.
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •