Flushing I/O streams 
Author Message
 Flushing I/O streams

According to the reference, ios.flush should write any pending data to
the output steam.

My experience, though, is that, unless you have written a newline,
nothing is output, even if you call flush.

For example,

   $defout.print "Hello, world!"

produces nothing

   $defout.print "Hello, world!"

produces nothing

   $defout.print Hello, world!\n"

produces "Hello, world!".

Can someone explain this to me?  Have I just misread the documentation?

I've seen this with a number of interpreters, including 1.6.5 on linux,
which is what I'm running at the moment.

Thu, 22 Apr 2004 05:42:56 GMT  
 [ 1 post ] 

 Relevant Pages 

1. stream & flush

2. logout/commit Vs stream/flush

3. Stream/Flush

4. SQL- Stream(File)/Flush(File)

5. Stream / Flush faster?

6. Optimising Browse Load with Buffering using STREAM and FLUSH

7. Stream & Flush question

8. Btrieve driver - Stream() and Flush() ?

9. Need info on STREAM() and FLUSH()

10. Stream & Flush

11. Stream & Flush

12. Flush - Stream (Again)


Powered by phpBB® Forum Software