From: James Edward Gray II Date: 2007-11-20T22:16:35+09:00 Subject: Re: read, write, seek method in a ring buffer class On Nov 20, 2007, at 5:21 AM, Martin Durai wrote: > Could any body help me with creating a ring buffer class using a > string. > use memory circular buffer not an IO buffer. just read, write and seek > method. Read method should take anumber and return the string. write > method should take a string. seek should take a number and return > nuthing. use three member variables a buffer itself as a string, > read_position, write_position. use >>, << methods. Show us what you have tried and tell us where you are stuck. We will be happy to get you going again. James Edward Gray II