I cant figure out how to use the atoi function....
So Maybe its not wht I need.
How can I do this
See, string1 contains pure numbers, but it must be a char to get the info from file, right?Code:int number; char string1[20]; ifstream fin("file.dat"); fin >> string1; if(number > string1) dofunction();