Create output file