回 帖 发 新 帖 刷新版面

主题:请教高手:怎样把数据存入一个文件啊

我们做数据采集的实验
怎么保存啊

回复列表 (共2个回复)

沙发

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.

板凳


tahank you very much

我来回复

您尚未登录,请登录后再回复。点此登录或注册