Outputting file after processing