pipe from readable to writable file and stdout