def read_file(path=None) -> str:
    """
    Function for reading the single file
    :param path: path to the file
    :return: data: data from the file
    """
    if not path:
        raise NameError('Required path to the file')
    with open(path, 'r') as f:
        data = f.read()
    return data