Hi, I am trying to read a whole file in, but apparently using eof() doesn't seem to work. For example, when I have something like this:
ifstream input_file(argv[1], ios::in);
while (!input_file.eof())
cout << "hello?";
This continuously prints out "hello?" which means that the end of the file is not being found. Any suggestions would be appreciated. The input file, by the way, has 15 characters in it.
Thanks in advance.