Prints code out to output file