[Tfug] rereading stdin

Robert Hunter bobjim.hunter at gmail.com
Fri Feb 17 21:15:18 MST 2006


> 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


More information about the tfug mailing list