65,187
社区成员




#include<fstream>
using namespace std;
int main(int argc, char* argv[])
{
ofstream ofs("abc");
for(int i = 1 ; i<100;i++)
ofs.write( (const char*) &i , sizeof(int) );
return 0;
}
fstream fout;
fout.open("txt.txt", ios::out);
if (!fout) return;
fout << "12346878" << endl;
fout.close();