Maybe it has to do with empire running in the background... I changed to using fopen() and now it works.
_________________________
--The Amigo