Here's how to read text from a file in Python; maybe a file that already exists or a file to which you wrote the text with Python.
file = open('/your/file.txt', 'r')
# Read all file contents
contents = file.read()
# Print the contents
print(contents)
file = open('/your/file.txt', 'r')
# Read the lines of the file
lines = file.readlines()
# Iterate through the lines
for line in lines:
print(line)