Basically I am reading in from a file and I am wondering how i can stop my while loop when i reach the end of my file. I looked up eof and even on the cprogramming.com website i read about eof and i just cant figure out how to use it. is eof a build in value? Basically atm I am using scanner to input ints and then char arrays and then once it reaches end of file i want it to stop. any tips.