make output file result.txt