Unable to open log.txt file