Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Daniel Mallett
Daniel Mallett
14,582 Points

Importing a csv file

Hey guys,

Just a quick question. I've been given a task and I need to import a csv file.. I'm not 100% sure on what language just yet leaning more towards Python and possibly .NET. This is just a quick ask. Would I need to create a database first then import it. Or does that not matter in anyway.

Also sorry if this is in the wrong topic I'm not 100% sure which area to post in.

Thank you

Dan

1 Answer

I'm not quite sure what you are trying to do but if you are trying to just read and manipulate data from a CSV file, you may want to use python because it is very easy and short code. Reading a CSV file should not require a database. The data from CSV file will live in memory as long as the program runs. If you manipulate the data in the CSV file, you can just create and save in a new CSV file with all the new information

If you decide to use python, see the link below. https://docs.python.org/2/library/csv.html

hope this helps!