I am having a csv file which I converted from .mat file and the size of the CSV file is 10161 and the it is stored in 10161 rows and 1 column.
I can extract the csv files when they are in 10161 columns and 1 row but I am unable to do the vice versa.
ifstream file("lbl_all.csv");
string value;
int s;
int result = 0 ;
while ( file.good() )
{
getline ( file, value, ',' );
string( value, value.length()-2,1 );
}
But here I am able to extract it but it coming in diff rows and 1 column.
Suggest me a way to extract it and store it in an array of size(10161,1).