Chaps,

 

I'm trying to open a file using open() but the name of the file is created
dynamically as a variable, but also has part of a static path. For instance,
the file may be called 'dave' and will always be in '/my/files/here/'.

 

Now I've tried a few combinations of getting this to work, such as.

 

Path = '/my/files/here/%s' % (name)

 

Open(Path, 'r')

 

But that does work, can anyone enlighten me on the best way to do this?

 

Thanks,

 

Rob

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to