Hi.. How do I check the data type in an input file ?
Suppose my text file looks like this. Tab separated :-
123 456 ABCD
789 890 EFGH
298 764 IUHJ
Now I read the file like char or string in my while loop using getline. So how do I cross check that suppose the first field is integer or not. 3rd field is a string if not pop up an error. Maybe its better to cross check it separately before reading the file.
Any idea ?
Thanks