ifstream file("e.txt");
ofstream mycout("0604.txt");
while (!file.eof())
{
char txt_cont[200], * p;
const char* d = "_";
//txt_cont 是读取数据
file.getline(txt_cont, 200);
//分割(取下划线前部分)
p = strtok(txt_cont, d);
//写出到
mycout << fvc << ',' << endl;
}
C++ 读入写出txt
最新推荐文章于 2022-11-10 17:06:05 发布