functions for reading in files and checking that all fields are present. Look for whole numbers