Creating Files

bruno modulix onurb at xiludom.gro
Wed May 4 04:24:23 EDT 2005


Dan wrote:
> 
> I know how to open a system file with Python, but is there some way to
> create one if it's not there?

As in any other language I know : just open it in write mode !-)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for 
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list