How do you do that? This code reads in the book. It reads in fine. Now I just have to alter it so it doesn't read in repeat words in the book. How would I do that?
void readInStory(){
ifstream inStream; // declare an input stream for my use
int wordRow = 0; // Row for the current word
allocateArrayStory(analysis);
inStream.open( "TheSecretAgentByJosephConrad.txt");
assert(! inStream.fail() ); // make sure file open was OK
// Keep repeating while input from the file yields a word
while (wordRow < MaxNumberOfWords && inStream >> analysis[wordRow]){
for (int i = 0; i < strlen(analysis[wordRow]); i++)
analysis[wordRow][i] = tolower(analysis[wordRow][i]);
analysis[wordRow] = (analysis[wordRow]);
wordRow++;
}
}