from typing import IO


def read_line(in_fd: IO[str]) -> str:
    """
    Reads a single line from a file in bytes mode

    :param in_fd: Input file descriptor
    :return: The line (from in_fd current position), without EOL
    """
    result = []
    while True:
        # Ignore the first line
        read_char = in_fd.read(1)
        if not read_char or read_char == "\n":
            # Don't include EOL or EOF
            break

        result.append(read_char)

    return "".join(result)