From: Robert Klemme Date: 2008-11-06T22:41:43+09:00 Subject: Re: how to quickly find a string towards the end of a large io object 2008/11/6 bwv549 : > How do I scan starting at the end of a big io object to find a string > that is always closer to then end? > > here's very roughly how the contents of the IO object look: > > Lots's of stuff... lot's of stuff....lot's of > stuff...."my_string_i_need"...lot's of stuff > > In other words, I have a massive IO object that I cannot reverse and I What is a "massive IO object"? Are we talking about a large file? A socket or pipe which yields a lot data? > need to very quickly find a string towards the end (but still fairly > far from the end). What's the fastest way to do this? Start scanning at the beginning and travel forward in time. :-) No seriously, we need a bit more detail. Kind regards robert -- remember.guy do |as, often| as.you_can - without end