If you don't include the "if" part, does it eventually give you an error? In other words, does it ever reach the EOF?