Re: Creating Files

2005-05-04 Thread Terje Johan Abrahamsen
Dan wrote: > On Wed, 04 May 2005 10:24:23 +0200, bruno modulix <[EMAIL PROTECTED]> > wrote: > > >As in any other language I know : just open it in write mode !-) > > Easy when you know how. > > Thanks e = file('c:/file.txt', 'w') By the way, check out the Python tutor service... http://mail.pyth

Re: Creating Files

2005-05-04 Thread Dan
On Wed, 04 May 2005 10:24:23 +0200, bruno modulix <[EMAIL PROTECTED]> wrote: >As in any other language I know : just open it in write mode !-) Easy when you know how. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Files

2005-05-04 Thread bruno modulix
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 '[EMAIL PR