ok, well what i have done is when i enter n, i store that value as a string.
now then, i read from that file, an integer q, and read the same value, a float p.
then i set up a while loop saying that when q-p is not equal to zero, then it brings about an error.
thanks for all the advice.