#include <iostream>
#include <fstream>
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();
}
网友评论