65|65 - Tips for File Handling
#include
#include
using namespace std;
int main()
{
ofstream buckyfile("bee.txt");
if(buckyfile.is_open())
{
cout << "is open" << endl;
}
else
{
cout << "meassed up" << endl;
}buckyfile << "oi love the bee" << endl;
buckyfile.close();
}
推荐阅读
- whlie循环和for循环的应用
- ffmpeg源码分析01(结构体)
- 【WORKFOR】最真的自己
- 星际无限|星际无限 | 官方推出Filecoin MinerX奖学金计划,吸引中小型Filecoin矿工
- Filecoin挖矿投资报告
- R|R for data Science(六)(readr 进行数据导入)
- performSelectorOnMainThread:withObject:waitUntilDone:参数设置为NO或YES的区别
- cannot|cannot be read or is not a valid ZIP file
- JavaScript|JavaScript — 初识数组、数组字面量和方法、forEach、数组的遍历
- Swift7|Swift7 - 循环、函数