string fileName(filepath); ifstream inData; inData.open(fileName.c_str()); if (!inData) return 0; int size = 0; while (inData.good()) { inData.getline(temp, 4096, ','); size++; } size == 40 , although the file has only 18 lines. How?
Source: https://ru.stackoverflow.com/questions/89268/
All Articles