I have coding experience in C# but I am beginner in c++.
How to read file line by line using below "for loop".
for (int i = 0; i < count; i++)
{
}
I found this piece of code but I couldn't understand.
for (string line = ""; getline(infile, line); )
{
//do something with the line
}