[Solved] What is a better way of reading a file in c++? [closed]
Either can work perfectly well. The real question is what you want to do with the data after you read it — if your processing is oriented toward complete lines, then read complete lines. If it’s oriented toward words, then read words. If it’s oriented toward characters, then read single characters. Just for example, if … Read more