Saved the output in file