def isDuplicateLanguage(language, ip, port):
    """
        Open the languages file, and check if an language, ip and port, are already in that file
    """
    currentLanguages = open("languages.txt", mode="r").readlines()
    new_language = " ".join([language,str(ip),str(port)])
    for item in currentLanguages:
        if new_language in item:
            return True
    return False