I am trying to read multiple files which contain values under various Column headers (like pressure, temperature etc)...I using "infile" to read values and assign it to a structure. However whenver there is a bad character in the file or less number than the number of parameters, the output gives error..(like it gives the output as only 0 once the bad character is encountered...)...Can someone help me regarding avoiding these bad characters....I have tried infile.getline also, but i do not know how to read individual characters in each line....
Kindly have patience, i am a beginner.Thank you in advance....