[Tutor] tempfile and passing files around
Kent Johnson
kent37 at tds.net
Tue Jul 11 21:43:55 CEST 2006
Gabriel Farrell wrote:
> On Tue, Jul 11, 2006 at 03:04:02PM -0400, Kent Johnson wrote:
>
>> Try bob.flush() instead of bob.read(), my guess is the read() is forcing
>> a flush().
>>
>
> That works! Thanks, Kent. If I understand flush (looking at [1]), I
> got no output because the data for the stream wasn't written to the
> file before I tried to read it. Is that right?
Yes, that's right.
Kent
More information about the Tutor
mailing list