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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. CSV file

CSV file

Scheduled Pinned Locked Moved C#
csharpdatabase
8 Posts 6 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.
  • A Offline
    A Offline
    Abbas_here
    wrote on last edited by
    #1

    Hi.. I am new in C#..How we work with CSV files as database..Please send me any article link for CSV fundamental. Thanks... Abbas

    K L V D H 5 Replies Last reply
    0
    • A Abbas_here

      Hi.. I am new in C#..How we work with CSV files as database..Please send me any article link for CSV fundamental. Thanks... Abbas

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Don't. Use a database.

      1 Reply Last reply
      0
      • A Abbas_here

        Hi.. I am new in C#..How we work with CSV files as database..Please send me any article link for CSV fundamental. Thanks... Abbas

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        CSV isn't meant as a database, just as XML or Excell-files. That something is possible, doesn't mean that it's a good idea. XML and CSV are slow if you treat them as a database, since the layout isn't optimized for that kind of access. Your best bet would be to use database, and export the pieces you need to CSV. If you're looking for something free and simple, consider SQLCE. That being said, it is possible to read/write CSV data as if it were a database. You'll only need a connectionstring[^] :)

        "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." -- Martin Golding

        A 1 Reply Last reply
        0
        • A Abbas_here

          Hi.. I am new in C#..How we work with CSV files as database..Please send me any article link for CSV fundamental. Thanks... Abbas

          V Offline
          V Offline
          Vivek Vijayan
          wrote on last edited by
          #4

          if u r new in C#, better dont use CSV for database..

          This code was posted by me...

          1 Reply Last reply
          0
          • A Abbas_here

            Hi.. I am new in C#..How we work with CSV files as database..Please send me any article link for CSV fundamental. Thanks... Abbas

            D Offline
            D Offline
            DaveyM69
            wrote on last edited by
            #5

            CSV can be a useful format for importing/exporting data, but although it's possible to do so, I wouldn't recommend using it as a DB.

            Dave
            Generic BackgroundWorker - My latest article!
            BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
            Why are you using VB6? Do you hate yourself? (Christian Graus)

            1 Reply Last reply
            0
            • L Lost User

              CSV isn't meant as a database, just as XML or Excell-files. That something is possible, doesn't mean that it's a good idea. XML and CSV are slow if you treat them as a database, since the layout isn't optimized for that kind of access. Your best bet would be to use database, and export the pieces you need to CSV. If you're looking for something free and simple, consider SQLCE. That being said, it is possible to read/write CSV data as if it were a database. You'll only need a connectionstring[^] :)

              "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." -- Martin Golding

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

              Abbas

              1 Reply Last reply
              0
              • A Abbas_here

                Hi.. I am new in C#..How we work with CSV files as database..Please send me any article link for CSV fundamental. Thanks... Abbas

                H Offline
                H Offline
                Henry Minute
                wrote on last edited by
                #7

                If you must use a CSV file take a look at this[^] utility.

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                A 1 Reply Last reply
                0
                • H Henry Minute

                  If you must use a CSV file take a look at this[^] utility.

                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                  A Offline
                  A Offline
                  Abbas_here
                  wrote on last edited by
                  #8

                  Thanks a lot

                  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