Thank you! That made me realize the problem, and I re-arranged my loop like so: current_char = fgetc(file_read); while(current_char != EOF) { /* put stuff here */ current_char = fgetc(file_read); } Morgon -- grab my updated (11/25/02) public key from http://www.surgo.net/pubkey.asc