Probier's mal mit

close(outFile);

So steht's in meiner Source.

Gruß,
KM