handle fscanf failure