def read_file(path: str) -> str:
    """Method to read content of a file.

    Args:
        path (str): path to file.

    Returns:
        str: content of the file.
    """
    with open(path, 'r', encoding='utf8') as file:
        content = file.read()
    return content