I am trying to enter the code below from a really simple text file. As you can in the output below, it prints the first line of the file and stops before printing the other two lines. (The text file by the way is located with the working Pycharm file).
Any clues as to what I am doing wrong?
C:\Users\ahitc\PycharmProjects\Python revision\venv\Scripts\python.exe" "C:/Users/ahitc/PycharmProjects/Python revision/scratch.txt"
File "C:/Users/ahitc/PycharmProjects/Python revision/scratch.txt", line 1
first line of text
SyntaxError: invalid syntax