📜  创建文件 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.475000             🧑  作者: Mango

代码示例1
// using ofstream constructors.
#include 
#include   

std::ofstream outfile ("test.txt");

outfile << "my text here!" << std::endl;

outfile.close();