Create write_file.cpp