test.txt generated by runing ./a.out > test.txt