Every example I see about opening a file in Python has something like this:
myFile = open('somefilenamehere', 'r') It never works for me when I just type the file name...you should always put full directory path where that file is
myFile = open('C:\\blah\\blah\\somefilenamehere', 'r') Does it work for someone? I mean just putting the name of the file?
osmodule.Python file (*.py)and thefile to be openedare in same directory, it will work.myFile = open(r'C:\blah\blah\somefilenamehere', 'r').