I wrote the following code to open a specific file. The file definitely exists, so why does Python say no such file?
try:
fh = open("F:/EveryThing! Python/CorePython/Strings/tester.txt");
strg = fh.read();
print (strg);
except IOError, e:
print e;
print "outputting e",e.args;
finally:
print "This is bound to be executed";
This outputs:
[Errno 2] No such file or directory: 'F:/EveryThing! Python/CorePython/Strings/tester.txt'
outputting e (2, 'No such file or directory')
This is bound to be executed