redirected results from output.c to log.txt