>> 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 wasn't there you would be right and he would need
to escape the \ ...or use a forward slash!

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to