I was thinking of making a custom stream to better handle gunzip and tar -z, and dpkg etc.. To create a custom stream the fopencookie function has to be used, stuffed if i can work out how to use it though, cant find a working example anywhere either. Anyone used this function ?