Nov-25-2017, 08:19 AM
(This post was last modified: Nov-25-2017, 08:26 AM by candylicious.)
I am required to read the file attached titled game2.txt below using python,
but my output is a blank line, which is not what the file includes
How do I get python to read and print my file correctly ??
here is what I have done:
game=open("game2.txt", "r") yay=game.read() print(yay)the output is just a blank line
What do I do to get python to print the file?
file:///C:/Users/Candy/Downloads/game2.txt
^^this is the attached game2.txt file