[Tutor] adding together strings

Andrew MacKay mackay@streathamcommon.demon.co.uk
Fri, 7 Apr 2000 15:19:00 +0100


Hello python tutors,

I hope you can help me with a little problem. (I am a beginner).
I am working on a program which will access some files in a folder on the
desktop without me having to type in the whole address every time.
Here is what I would like to do.

filename = raw_input("type name of file ")
filename="C:\windows\desktop\targetfolder\" + filename

When I try this kind of thing at the command line it works fine, but when I
put it into a module it tells me that "filename" is an "invalid token"

Help!

Andrew