how do you check the thing you read in from file is int or char?
how do you check the thing you read in from file is int or char?
I assume you mean a digit or an alphabetic character. Try looking at the functions provided by the ctype.h header. Specifically isalpha and isdigit. Otherwise, clarify your question.
Quzah.
Hope is the first step on the road to disappointment.