Question: Code in C I want to write a program, that reads a very large csv file. I want the file to read the columns by

Code in C

I want to write a program, that reads a very large csv file. I want the file to read the columns by name and then print the entirety of the column . So I would like to print out the Unix Timestamp in the example down below for example. When it is printing the list I would like the code to go down the list one by one and print out the row numbers as well with it. When the code reaches the end of the row I would also like that to be printed.

Csv file:

Unix Timestamp,Date,Symbol,Open,High,Low,Close,Volume BTC,Volume USD 1605139200.0,2020-11-12,BTCUSD,15710.87,15731.73,15705.58,15710.01,1.655,26014.29 1605052800.0,2020-11-11,BTCUSD,15318,16000,15293.42,15710.87,1727.17,27111049.25 1604966400.0,2020-11-10,BTCUSD,15348.2,15479.49,15100,15318,1600.04,24521694.72 1604880000.0,2020-11-09,BTCUSD,15484.55,15850,14818,15348.2,2440.85,37356362.78 1604793600.0,2020-11-08,BTCUSD,14845.5,15672.1,14715.98,15484.55,987.72,15035324.13

Expected output print the first column:

1: 1605139200.0

2: 1605052800.0

3: 1604966400.0

4: 1604880000.0

5: 1604793600.0

end of the column

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!