All Questions

182
votes
31answers
229249 views

How can I read and parse CSV files in C++?

I need to load and use CSV file data in C++. At this point it can really just be a comma-delimited parser (ie don't worry about escaping new lines and commas). The main need is a line-by-line parser...
77
votes
30answers
601583 views

How to split a comma-separated value to columns

I have a table like this Value String ------------------- 1 Cleo, Smith I want to separate the comma delimited string into two columns Value Name Surname ------------------- 1 Cleo ...
380
votes
21answers
411784 views

Dealing with commas in a CSV file

I am looking for suggestions on how to handle a csv file that is being created, then uploaded by our customers, and that may have a comma in a value, like a company name. Some of the ideas we are loo...
177
votes
8answers
234539 views

Javascript code to parse CSV data

Does someone have an idea on where I could find some javascript code to parse CSV data ?
175
votes
17answers
212955 views

Parsing CSV files in C#, with header

Is there a default/official/recommended way to parse CSV files in C#? I don't want to roll my own parser. Also, I've seen instances of people using ODBC/OLE DB to read CSV via the Text driver, and a ...
110
votes
11answers
172293 views

Importing multiple .csv files into R

Suppose we have a folder containing multiple data.csv files, each containing the same number of variables but each from from different times. Is there a way in R to import them all simultaneously rat...
150
votes
10answers
185486 views

CSV API for Java

Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it. A quick google has found http://flatpack.sourceforge.net/ which l...
838
votes
24answers
824643 views

How to output MySQL query results in CSV format?

Is there an easy way to run a MySQL query from the Linux command line and output the results in CSV format? Here's what I'm doing now: mysql -u uid -ppwd -D dbname << EOQ | sed -e 's/ ...
124
votes
10answers
162984 views

Reading CSV files using C#

I'm writing a simple import application and need to read a CSV file, show result in a DataGrid and show corrupted lines of the CSV file in another grid. For example, show the lines that are shorter th...
303
votes
19answers
293884 views

How to export JavaScript array info to csv (on client side)?

I know there are lot of questions of this nature but I need to do this using JavaScript. I am using Dojo 1.8 and have all the attribute info in array, which looks like this: [["name1", "city_name1", ...

Previous Next