I faced the same problem once.Dont remember the solution, but it is definitely the slashes which are causing the problem.I couldnt find a specific rule in whole of microsoft documentation, so i assume it has to be hit and try.Try a mix of backslashes n forward slashes till u get there. Whats worse, I had found that the rule is different for different versions of windows.Just proves what we all know...Windows Suxx. --- John Purser <[EMAIL PROTECTED]> wrote: > I agree with a previous poster, check your path. I > think either the path > doesn't exist or you don't have permission to get to > it. > > John > > -----Original Message----- > From: Dave S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 08, 2005 14:50 > To: [EMAIL PROTECTED] > Cc: 'Python Tutor' > Subject: Re: [Tutor] Acessing files in Windows 2000 > > John Purser wrote: > > >Try c:\\my documents\\memo.txt > > > > > >John > > > > > Unfortunately thats a no go ... > > palm.py > > palm memo.txt to oocalc data.csv convertor, written > by lentil ;) > [EMAIL PROTECTED] - enter "palm software" in the title > or it will be junked > > 09-03-2005 v1.02w Coded for Windows > 07-03-2005 v1.02 Coded capitalization() + default > to mon > 03-03-2005 v1.01 Squished 1/9 decode bug > 02-03-2005 v1.00 Coded for Linux > > Traceback (most recent call last): > File "C:\Documents and > Settings\Administrator\Desktop\palm.py", line > 268, in ? > palm_conv() > File "C:\Documents and > Settings\Administrator\Desktop\palm.py", line > 54, in palm_conv > memo = open(memo_file, 'r') > IOError: [Errno 2] No such file or directory: > 'c:\\my documents\\memo.txt' > >>> > > If I try c:\\ > > or > > c:\ > > it always comes out as c:\\... and fails > > Dave > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor >
__________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor