Dirk Koopman: > Isn't this just dup()? The problem you have with that is that on > non-seekable (or at least non-rewindable) things (like sockets), reading > anywhere from it will IIRC consume the data. That's why it's not just dup(). -- A successful [software] tool is one that was used to do something undreamed of by its author. -- S. C. Johnson