Re: problems using pythom tempfile module

2007-09-15 Thread buffi
Pretend that you have a number that is always pointing somewhere in your temporary file. It starts a 0. If you then write "lalalala" (8 characters) it will point after these at position 8, so that you can write more stuff after your previous text later by calling write. The read method reads all t

Re: problems using pythom tempfile module

2007-09-15 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Sep 15, 5:24 pm, buffi <[EMAIL PROTECTED]> wrote: >> On Sep 15, 11:11 pm, "[EMAIL PROTECTED]" >> >> >> >> <[EMAIL PROTECTED]> wrote: >>> Hello everyone, >>> I'm trying to test the tempfile module with the following script, >>> which basically creates a temporary file,

Re: problems using pythom tempfile module

2007-09-15 Thread [EMAIL PROTECTED]
On Sep 15, 5:24 pm, buffi <[EMAIL PROTECTED]> wrote: > On Sep 15, 11:11 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > > I'm trying to test the tempfile module with the following script, > > which basically creates a temporary file, fills the file with some > > t

Re: problems using pythom tempfile module

2007-09-15 Thread buffi
On Sep 15, 11:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'm trying to test the tempfile module with the following script, > which basically creates a temporary file, fills the file with some > test data and prints it. > > import tempfile > > t = tempfile.TemporaryF

problems using pythom tempfile module

2007-09-15 Thread [EMAIL PROTECTED]
Hello everyone, I'm trying to test the tempfile module with the following script, which basically creates a temporary file, fills the file with some test data and prints it. import tempfile t = tempfile.TemporaryFile() t.write("lalalala") t.flush() print t.read() Unfortunately, the print statem