with open ("data.txt", "r") as myfile: data = myfile.read().splitlines()
path= #path here with open(path) as file contents = file.read()