Originally Posted by
Prelude
>Am I possibly doing something wrong with the file name?
>gave me a problem with the file as well "error opening file"
I imagine the first would be undefined behavior because the file wasn't found and your code didn't check for that. The second was my carefully crafted error message notifying you that the file you typed wasn't where the program looked for it. Try giving the full path of the file, or if you're running this program from the IDE, find out where your compiler looks for files (such as the same location as the project file or the executable) and place it there.