From: Randy Kramer Date: 2005-03-04T11:21:54+09:00 Subject: Re: How/Where is a Stream Stored? On Thursday 03 March 2005 05:56 pm, Guillaume Marcais wrote: > On Thu, 2005-03-03 at 05:26 +0900, Randy Kramer wrote: > It depends on the type of stream. You can backtrack easily with a file, > but you can't with non-seekable stream (like stdin, network socket, > etc.). So using IO#seek would prevent your program to work as a UNIX > filter (reading from stdin, writing to stdout). Might be or not be a > great deal to you, your call... ... > All disk operations on recent OS are cached. Backtracking a small amount > is likely not to generate any disk activity. Guillaume, Thanks! Randy Kramer