SO i am trying to write a program that asks the user for input and then opens a file that is of that input name... My program attempts to read the file and then display the line count but it keeps getting stuck in an infinite loop when using ifstream::elf()
Thanks for the reply:) anyway why wouldnt i want to use eof? and I didn't know the getline function could be used as a checker for the end of the file, how does that work? Also, what is the line param? is it a string var?