[Solved] C++ fstream getline parameters
If you mean std::basic_stream::getline(), you provide a pointer to character array and the size of that array. You have to create the array somewhere by yourself. If some line is longer than sz – 1, only part of it with length sz – 1 will be read. If you don’t know the maximum length of … Read more