Finds a required record in a file.