1. Try: with open(filename, "r") as file: record = file.readline().strip(), If record: return record, Else: print("No more records found in the file."), return None
2. Except FileNotFoundError: print(f"Error: {filename} not found."), return None
3. Except IOError: print(f"Error: Unable to read from {filename}."), return None