c/c++ file generator