I have to read in a .csv file with data which has a newline character at the end of each object's data. Below is an example of the file:
5201,Egestas LLC,Clear,NA,NA,408881,544329
5202,Elementum Sem Associates,Clear,NA,NA,426281,528325
I have been trying to use various getline(inFS, number, ',')
statements, however, have been getting invalid conversion from 'void*' to 'char**' [-fpermission]
. Is this because getline()
can only take in strings? Is there an easier or more specific way to read in .csv files?