I'm trying to read in word by word from an array that contains a sentence, and I'm comparing each word to the word passed as an argument. For some reason however, this goes into an infinite loop because it keeps reading the first word over and over. Any one know why this is happening? Thanks.Code:while(sscanf(testSection,"%s",currentWord)==1){ if(strcmp(currentWord,argv[1])==0){ fputc('1',output); } else { fputc('0',output); } }