【发布时间】:2010-12-01 22:32:35
【问题描述】:
我以二进制模式打开了一个文件,并想写入一个文件。
ofstream ofile("file.txt",ios_base::binary)
int a = 1;
float f = 0.1;
string str = 10;
ofile<<a<<f<<str;
想知道使用 "
【问题讨论】:
-
这完全是猜测,但我敢打赌
operator<<是使用write()实现的
标签: c++ visual-c++ file