Hello Ole fflush() was the solution. The second problem, stopping at 1005 Bytes, was on my side. Do I have to take care to call fflush() at least every 512 bytes? Many thanks. Greetings Klaus Kloos