title: How do I delete specific words in arrays?
body: <p>I want to delete all words that have greater than 5 letters from a .txt file. 
  In my first step I have read all words in a array of char pointers with fgets. 
  Now I have no idea how I can continue. 
  I would be grateful if someone could help me. What I got so far: </p>
  
  <pre><code>    int main () {
          FILE *fp;
          char str[2500];
  
          fp= fopen("a.txt" , "r");
          if (fp==NULL) { 
              perror("Error opening file");
              return(-1); 
          }
  
          fgets (str, 2500, fp)!=NULL
  
          fclose(fp);
          return(0);
     }
  </code></pre>