Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. delimitted files

delimitted files

Scheduled Pinned Locked Moved Visual Basic
tutorial
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Engelkes
    wrote on last edited by
    #1

    does anyone have any sample on how to read a comma delimited file.

    _ A M 3 Replies Last reply
    0
    • D Daniel Engelkes

      does anyone have any sample on how to read a comma delimited file.

      _ Offline
      _ Offline
      _Damian S_
      wrote on last edited by
      #2

      Generally you would open a file handle to the file, read a line in, then process the line, reading up to the first comma, processing that part, reading up to the next comma, processing that part... until you reach the end of the line. After this, read the next line and repeat... Stop when you reach the end of the file.

      I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! If you need a laugh, check out my Vodafone World of Difference application | If you like cars, check out the Booger Mobile blog | If you feel generous - make a donation to Camp Quality!!

      1 Reply Last reply
      0
      • D Daniel Engelkes

        does anyone have any sample on how to read a comma delimited file.

        A Offline
        A Offline
        Andy_L_J
        wrote on last edited by
        #3

        This may help: Reading comma delimited files[^]

        I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

        D 1 Reply Last reply
        0
        • D Daniel Engelkes

          does anyone have any sample on how to read a comma delimited file.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          CSV to Table to CSV [^]

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • A Andy_L_J

            This may help: Reading comma delimited files[^]

            I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

            D Offline
            D Offline
            Daniel Engelkes
            wrote on last edited by
            #5

            reading the files in a data set is interesting but using a dataset how would I transfer the data to a string array possible a two dimensional array.

            A 2 Replies Last reply
            0
            • D Daniel Engelkes

              reading the files in a data set is interesting but using a dataset how would I transfer the data to a string array possible a two dimensional array.

              A Offline
              A Offline
              Andy_L_J
              wrote on last edited by
              #6

              Does this give you the idea?

              Dim arr(ds.MyTable.Rows.Count-1, 1) As String
              Dim count as Integer = 0
              For Each dr as DataRow in ds.MyTable
              arr(count,0) = dr("ID").ToString
              arr(count,1) = dr("Name").ToString
              count += 1
              Next

              ' do something with the array

              I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

              1 Reply Last reply
              0
              • D Daniel Engelkes

                reading the files in a data set is interesting but using a dataset how would I transfer the data to a string array possible a two dimensional array.

                A Offline
                A Offline
                Andy_L_J
                wrote on last edited by
                #7

                You might also look here: TextFieldParser[^]

                I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups