save result to text file