andy senoaji wrote:
> Thanks Danny & Alan,
>
> your print repr(os.listdir("C:/")) has embarrased myself :(. I found out
> the file name is Test.txt.txt in my c: drive. I guess I learn something
> here.
If you tell Windows not to hide file extensions you won't make that
mistake again. On my com
Thanks Danny & Alan,your print repr(os.listdir("C:/")) has embarrased myself :(. I found out the file name is Test.txt.txt in my c: drive. I guess I learn something here.Again ThanksAndy
On 1/17/06, Danny Yoo <[EMAIL PROTECTED]> wrote:
On Tue, 17 Jan 2006, andy senoaji wrote:> I'm back to my home m
On Tue, 17 Jan 2006, andy senoaji wrote:
> I'm back to my home machine, and ran again the open method, just to test
> my sanity Here are the results:
[cut]
Hi Andy,
Unfortunately, there are a few things that might be happening here. You
mentioned earlier that:
> I know for sure that the fil
>>> f=open(r'c:\Test.txt','r')
Traceback (most recent call last):
File "", line 1, in ?
IOError: [Errno 2] No such file or directory: 'c:\\Test.txt'
Its pretty determined that Test.txt doesn't exist.
What happens if you do:
import os
os.listdir('C:\\')
In other words does Python see the file
I'm back to my home machine, and ran again the open method, just to test my sanity Here are the results:>>> f=open(r'c:\Test.txt','r')Traceback (most recent call last): File "", line 1, in ?
IOError: [Errno 2] No such file or directory: 'c:\\Test.txt'>>> f=open(r'c:\\Test.txt','r')Traceback (most
At 09:23 AM 1/17/2006, Paul Kraus wrote:
>On Tuesday 17 January 2006 12:11 pm, andy senoaji wrote:
> > I am starting to pull my hair here. There were some postings in the past,
> > similar to my problem, but the response was not clear enough. Sorry if you
> > thingk I am reposting this.
> >
> > I a
(replying back to the list also)
On Tue, 2006-01-17 at 10:03 -0800, andy senoaji wrote:
> Sorry for the inconsistent error message. I think I may pasted
> incorretcly. I am now in a different machine, and have tested Paul's
> suggestion, and it worked. But would the 'r' tackles the escape
> sequenc
> I am trying to run (on an XP box) a simple open file using this:
> f = open(r'C:\Test.txt', 'r')
> IOError: [Errno 2] No such file or directory: 'C:\Test.txt'
> I know for sure that the file is there
> Furthermore, how does Python assumes the search path?
There is no search, you have specifi
>> I am trying to run (on an XP box) a simple open file using this:
>> f = open(r'C:\Test.txt', 'r')Newbie here but shouldn't it be.
>
> Newbie Here
>
> f = open( r'C:\\Test.txt','r')
>
> I think you are escaping the T with \T.
The r in front of the string should prevent that problem.
If the r
On Tue, 2006-01-17 at 09:11 -0800, andy senoaji wrote:
> I am starting to pull my hair here. There were some postings in the
> past, similar to my problem, but the response was not clear enough.
> Sorry if you thingk I am reposting this.
>
> I am trying to run (on an XP box) a simple open file usi
On Tue, 17 Jan 2006, Paul Kraus wrote:
> On Tuesday 17 January 2006 12:11 pm, andy senoaji wrote:
> > I am starting to pull my hair here. There were some postings in the past,
> > similar to my problem, but the response was not clear enough. Sorry if you
> > thingk I am reposting this.
> >
> > I a
On Tuesday 17 January 2006 12:11 pm, andy senoaji wrote:
> I am starting to pull my hair here. There were some postings in the past,
> similar to my problem, but the response was not clear enough. Sorry if you
> thingk I am reposting this.
>
> I am trying to run (on an XP box) a simple open file us
I am starting to pull my hair here. There were some postings in the past, similar to my problem, but the response was not clear enough. Sorry if you thingk I am reposting this.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 naggi
13 matches
Mail list logo