主题:请教高手:怎样把数据存入一个文件啊
zh5026
[专家分:0] 发布于 2006-12-21 18:05:00
我们做数据采集的实验
怎么保存啊
回复列表 (共2个回复)
沙发
laila [专家分:160] 发布于 2006-12-21 20:06:00
Try this...
std::ofstream expNewResFile1; // define a stream
expNewResFile1.open(("file name").c_str(), std::ios_base::app);
Write to file:
When you received data you can write to the file:
expNewResFile1 << data1 << "\t"<< data2 << " \t"<<......<<\n";
Good Luck.
板凳
zh5026 [专家分:0] 发布于 2006-12-22 22:39:00
tahank you very much
我来回复