2008/11/6 bwv549 <jtprince / gmail.com>: > 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