Basic range check during datafile reading