Saving results in txt file