Write C file to disk, first working program end-to-end