Thank you once again jesus but could you do the same along with my coding, without using any io buffers or string io buffers because iam going to use this class in another application. Jesús Gabriel y Galán wrote: > On Nov 22, 2007 11:41 AM, Martin Durai <martin / angleritech.com> wrote: >> Thank you Jes?r spending your precious time but unfortunately i dont >> want to use IO buffers. i need to use buffer as a string. > > StringIO *is* a String buffer. It just happens to have the same > methods as an IO: > read/write/seek and it keeps a position within the buffer. > > Jesus. -- Posted via http://www.ruby-forum.com/.