From: "Henry T. So Jr." Date: 2001-03-31T10:58:52+09:00 Subject: [ruby-talk:13370] Re: Buffered and non-buffered IO In [ruby-talk:13369], Lloyd Zusman wrote: > Could anyone point me to some documentation that describes how I could > cause output to $stdout (or any other output stream) to be switched > between buffered and unbuffered mode? This corresponds to setting > `$|' to 1 or 0 in Perl. > I couldn't find anything about this in "Programming Ruby", but perhaps > I didn't look in the right place. This would be done by calling IO#sync=true (or false, depending on what you want). According to the pickaxe book, however, this just controls Ruby's internal buffering, so the underlying OS might do some buffering of its own that's not controlled by this attribute. Henry.