Jump to content

CSV Data

- - - - -

  • Please log in to reply
1 reply to this topic

#1
AtoZ

AtoZ

    Learning Programmer

  • Members
  • PipPipPip
  • 36 posts
Hello.

I have a CSV file, and I want to take it, and use the data in C#

How can I do this?

#2
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
Google search returned:

Building a Simple CSV Parser in C# | Switch on the Code
CSV file parser and writer in C# (Part 2) - Random Stuff

Or you could try to simipify and use a stream reader. set each new line on a ';' character. If you are trying to read random csv file parsing them would be best. If you want to work with the data and you know what to expect you could create a strongly typed object which would make it easier to work with.

Hopefully this helps.
-CDG10620
Software Developer




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users