format result output file.