writing results to a file
read the result file to cumulate answers