Using get line() with multiple types of end of line characters
问题 I am using std::getline() in the following manner: std::fstream verify; verify.open(myURI.c_str()); std::string countingLine; if(verify.is_open()){ std::getline(verify, countingLine); std::istringstream iss(countingLine); size_t pos; // Check for the conventional myFile header. pos = iss.str().find("Time,Group,Percent,Sign,Focus"); if(pos == std::string::npos){//its not there headerChk = false; this->setStatusMessage("Invalid header for myFile file"); return 0; } // loop that does more