Hello,
I read one csv file in which it contains different types of data like string, integer etc.I want to fetch only integer data from that file and store in vector.Below i copy some code that read line from file,store in vector.I tried to convert string to integer or double and do some operations on it as i know that string values,but how to identify only integer values and store that in vector?
That input file seems is nearly impossible to read without some heuristic.
The problem is the format may be inconsistent. It isn't clear what a field is, or how they're separated. You need a single separating character, a tab or comma. And data should appear as rows.