While loop is not being executed, with getline as argument

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?
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.