I'm working on a function that seeks out where a high score should go in a text file. For some reason it loops until it gets to the highest number in the list. Here is the contents of "data.txt" and the problem code:

800
Greg
700
Suzy
600
George
500
Fred
400
Frank
300
Bob

Code:
void putit(){

	int i=1;
	int b=1;
         money=550;

	while(money>=lowest){

		File.seekg(ios::beg);

		while(i<numberOfLines-b){
			File.getline(TempInLine,256);
			i++;
		}

		b+=2;
		File>>lowest;

	}
}
I just know it's something stupid but I've gone thru it too many times and just cannot figure it out. The problem is that "lowest" always is equal to 800 (the highest number in the list) no matter what the value of "money" is. Thanks for any help!