Hi, I'm having some issues reading in a file from the command line argument. Basically I have a file with text from chapter one of a story. I am supposed to read in the file and then find the bigrams (pairs of words) in the file.
However there are multiple files of text with different passages. Therefore I have to take the name of a file as a command line argument.
Can anyone tell me why I keep getting the error that my file did not open?
Thank you for your suggestion. I've actually tried a different approach of having the user cin and then storing that into a string object and using that to open file and it worked out pretty well.