title: Trying to check one 2d char array for keywords in a second 2d char array
body: <p>I'm trying to compare one text file, in this case a resume, with another file with a series of keywords in it. I've turned the files into 2d arrays, and am trying to check the resume for the keywords, but it looks like it's counting the characters instead of the words. I'm not sure how to go about just counting the words here. Any help would be greatly appreciated. This is what I'm trying to work with:</p>
  
  <pre><code>        for (x = 0; x &lt; 500; x++) {//starts and the first char of the resume, then moves to the next
              for (z = 0; z &lt; 30; z++) {//runs through the first word
                  if (resumeArray[x][z] == keywordArray[y][z]) {//if the word matches the keyword, then it's true
                      if(resumeArray[x][0] == keywordArray[y][0]){
                          if(resumeArray[x][z] == ' ')
                          keywordCount++;//if it's a true statement, then increase the keyword count
                      }
                  }
              }
          }
          y++;//move on to the next keyword
      }
  </code></pre>