📅  最后修改于: 2022-03-11 14:44:51.163000             🧑  作者: Mango
#include
#include
#include
ifstream file("filename.txt");
string data = "";
while(getline(file, data,','))
{
cout << data << endl;
}
file.close();