[Tutor] Files and file attributes

Remco Gerlich scarblac@pino.selwerd.nl
Thu, 22 Feb 2001 10:42:38 +0100

On Wed, Feb 21, 2001 at 07:46:14PM -0500, D-Man wrote:
> Also, I think tqs don't do any special character expansion :
> f = open( """c:\tmp\testfile""" , 'r+' )

They do, this one doesn't work. There are also *raw* tqs, ie r"""\t"""...

I repeat my favorite solution, as I see everybody else omits it :)

f = open("c:/tmp/testfile","r+")

Windows is perfectly ok with forward slashes. They keep it a bit of a secret

Remco Gerlich