def read_file(file_name: str):
    """
    read a text file (doesn't need to be .txt)

    :param file_name: the name of the json file
    :return: the content of the file
    """
    with open(file_name) as text_file:  # open the file
        file_content = text_file.read()  # read the content of the file
        text_file.close()  # close the file

    return file_content