I am trying to input a group of words from a text file. I can only get the first word and it ignores the rest...what is the problem?
My input file is called "patterns.txt". As an example, lets say it contains the words (Big House). When I run the code below, it returns Big only...why? and how can I fix this?
//open the file for reading
//for debugging purposes only
cout<<"the file patterns.txt contained the pattern: "<<pattern<<"\n";
//close the file after reading in the pattern