While loop is not being executed, with getline as argument

Dec 16, 2014 at 2:25am
This is the code i am working on: http://ideone.com/YixZyL

I had designed a cross platform grep and am revising it to making it more well for lack of a better word understandable, and clear.

The line

 
while(getline(file, currentLine))
worked before but now it doesn't. Anyone have any idea why?
Dec 16, 2014 at 2:53am
Wait, I was being stupid. The file did not exist since filenNme already contained the extension but I opened fileName+fileExtension.
Topic archived. No new replies allowed.