#include <fstream>
#include <sstream>
#include <string>
int main()
{
std::ifstream infile("D:\\accounts.txt");
std::string line;
while (std::getline(infile, line))
{
std::istringstream iss(line);
std::string username;
std::string password;
std::getline(iss, username, ',');
std::getline(iss, password, ',');
}
return 0;
}
</string></sstream></fstream>