Code:
	while(File) {
this way the loop will still continue once after the last line was already read because EOF will only be set if a read operation fails.
That's why you process the last line twice.
Kurt