Hello there, ---------------------------------------- > Hi David; > > Thanks for the report. fclose doesn't really make sense here; Surprising. There is a call to fclose for the success return, so I just assumed that one would also be required for the error return. >what is that error message from? cppcheck, a static analysis tool available from sourceforge. Regards David Binderman