Printing results

I want to print out the results into the output file as soon as they get calculated (not when the entire job gets finished ) . What should I do ? I have attached my input file in the post . If anyone can help me out if would be greatly appreciated .

Thank you

ch3f_formal_scan.txt (1.3 KB)