Save output to file and open