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. C / C++ / MFC
  4. working with .csv files?

working with .csv files?

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
2 Posts 2 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.
  • T Offline
    T Offline
    trustno1
    wrote on last edited by
    #1

    hi everybody, i'm working on a project that reads in a .csv file(comma delimited).. i was wondering is there a premade library for reading .csv, ie parse everything nicely? i want to find out if there is one before i write one for myself.. btw, i'm running winxp pro, using vc++ and having ms office xp installed. thank you!

    N 1 Reply Last reply
    0
    • T trustno1

      hi everybody, i'm working on a project that reads in a .csv file(comma delimited).. i was wondering is there a premade library for reading .csv, ie parse everything nicely? i want to find out if there is one before i write one for myself.. btw, i'm running winxp pro, using vc++ and having ms office xp installed. thank you!

      N Offline
      N Offline
      Nitron
      wrote on last edited by
      #2

      If you took a lookie in the Files and Folders section, I'm sure you would have stumbled onto my article: http://www.codeproject.com/file/CDataFile.asp[^] :cool: I just submitted an update that implements write/create methoda as well as statistical analysis. If you are reading text only and not numerical data, you can just change the CNamedVariable member vData from std::vector<double> to std::vector<CString> if you'd like. Just remember to strip out the atof() call in the read method, and don't use any of the math calls in the new version. - Nitron


      "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

      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