I can't get a file to open using the open() method.
- I wanted the file to open in notepad.
- I feel like I was able to do this before so it is a new issue.
- I can read the file just fine.
- I am able to open images using PIL show() just fine.
- Python 3.6, Windows 7.
Any help appreciated!
filename = "C:/Users/Eman-Win10/Desktop/Python_Images/test1.txt"
fo = open(filename)
print(fo.read())
C:\Users\Eman-Win10\Desktop\Python_Images>python c:/Users/Eman-Win10/Desktop/Python_Images/test2.py
These are the contents of my test1.txt file!