> The limitations are that you need space to equal the amount you are reading in, and that you end up opening an fd for each time you want to read the data in (as there is no rewind). Nice solution :-) This is what I meant by "getting the OS to do it for you," since the storing of the data is achieved by duplicate file descriptors. -- Rob