Write a file - beginner's question

2008-07-03 Thread Ben Keshet
I have a probably simple beginner's question - I have a script that I am currently able to print its output. instead, i want to write it into a file - I tried different versions of write() but might have gotten the syntax wrong. the variable I want to write is a line from a file I am

Re: Write a file - beginner's question

2008-07-03 Thread Bruno Desthuilliers
Ben Keshet a écrit : I have a probably simple beginner's question - I have a script that I am currently able to print its output. instead, i want to write it into a file - I tried different versions of write() but might have gotten the syntax wrong. The syntax is:

Re: Write a file - beginner's question

2008-07-03 Thread Callie Bertsche
I have a closely related note. How do I write to a relative path with python? Example, source = open('/../../directory/subdirectory/file.extension') What am I missing? -- http://mail.python.org/mailman/listinfo/python-list

Re: Write a file - beginner's question

2008-07-03 Thread Matthew Fitzgibbons
Callie Bertsche wrote: I have a closely related note. How do I write to a relative path with python? Example, source = open('/../../directory/subdirectory/file.extension') What am I missing? -- http://mail.python.org/mailman/listinfo/python-list Leave off the beginning slash. -Matt --