I am trying to run (on an XP box) a simple open file using this:
f = open(r'C:\Test.txt', 'r')
but it keeps give me nagging error of:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in -toplevel-
f = open('Test.txt', 'r')
IOError: [Errno 2] No such file or directory: 'C:\Test.txt'
I know for sure that the file is there, I even put copies of the files here and there, just to guess how python does the file search, but it
keeps giving me 'No such file or directory'. i also tried variation of the file location string, but gave me a variation of errors :). Any suggestions?
Furthermore, how does Python assumes the search path? Will it look at /LIB first? How does it knows drive lettering, network mapping etc? Is there a configuration settings that I can tweak in my Python? FYI I am using Activestate's.
Thx,
Andy
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor