Read the content of the given file.
(file_path: str)
| 72 | |
| 73 | |
| 74 | def read_file(file_path: str) -> str: |
| 75 | """Read the content of the given file.""" |
| 76 | try: |
| 77 | with open(file_path, "r") as f: |
| 78 | return f.read() |
| 79 | except FileNotFoundError: |
| 80 | print(f"Error: File not found: {file_path}.") |
| 81 | return "" |
| 82 | |
| 83 | |
| 84 | def parse_number_string(number_str: str | None, default_value: int = 0) -> int: |