Create write.cpp