[Tutor] tempfile and passing files around

Gabriel Farrell gsf at panix.com
Tue Jul 11 21:24:44 CEST 2006


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?

[1] http://www.opengroup.org/pubs/online/7908799/xsh/fflush.html


More information about the Tutor mailing list