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
[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,
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
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
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