use standard iso file io functions for log file