def get_text(enc='utf-8', filepath=None):
    """returns text from a file"""
    if filepath == None:
        file = input("Provide path to the file to be extracted: \n")
    else:
        file = filepath
    f = open(file,'r',encoding = enc)
    return f.read()