Check if return value is 1What if the user inputs 1? You'll get problems.
Fstream fails to open even though the filename is correctYeah, that helped me fix it. Apparently it was appending the name of the file onto the string, whic...
Fstream fails to open even though the filename is correctThat code still fails when the program's folder is in the PATH, though. http://dl.dropbox.com/u/285...
Fstream fails to open even though the filename is correctYeah, that should work, but that's not the problem. The problem is that the fstream doesn't open the...
Fstream fails to open even though the filename is correctNope. The reason being the above: if the path to the executable's stored in PATH, then argv[0] will ...