For my script, I am trying to open a text file and print out the information in the console window. However, I am having trouble finding the right way to load it.
To start, I need to figure out how to load something in the same directory as the script, so far I have this:
listnum = input("> ") fn = 'VocabList.'+str(listnum)+'.txt' wordfile=open(fn,"r")
IOError: [Errno 2] No such file or directory: 'VocabList.0.txt'
So, what am I doing wrong?
Also, is it possible to load a file in another directory?
Thanks in advance.