std::getline((std::ifstream), (std::string)) error!!

Hello. I have this while-loop:

1
2
3
4
5
while(std::getline(stream, data) // std::ifstream& stream | std::string data
{
   std::cout << "Entered while loop!";
   // ...some code here.
}

But it never enters the loop!!
Help!
EDIT: Something went wrong I guess, it works fine, now.
You were visited by the programming gremlins. They visit us all from time to time. They mess with your code so it doesn't run, and then when you think you're going crazy, they leave, and things work again the way you think they should.

Welcome to programming.
Lol, that's just about sums it up, yes.
I have no idea how it happened.
Topic archived. No new replies allowed.