writing results/fail logs to text files