[Tutor] Open file error

Paul Kraus pkraus at pelsupply.com
Tue Jan 17 18:23:32 CET 2006

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 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.


More information about the Tutor mailing list