Writing out file for compiler. Complete way for a compiler