def read_lines_from_file(file_path: str) -> list:
    """Read lines from a file and return them as a list."""
    try:
        with open(file_path, "r") as f:
            return [line.strip() for line in f if line.strip()]
    except FileNotFoundError:
        print(f"File not found: {file_path}")
        return []
    except IOError as e:
        print(f"Error reading file {file_path}: {e}")
        return []
Read lines from a file and return them as a list.
fuzzing/fuzz-targets/utils.py