title: Reading only letters in C using fscanf
body: <p>Is it possible to use <code>fscanf</code> to read words without symbols from a text file</p>
  <p>this function prints one word on a single line but if the word had comma or brackets it will print those too is there anyway to only print letters?</p>
  <pre class="lang-c prettyprint-override"><code>void load(const char *file)
  {
      FILE *inFile = fopen(file , &quot;r&quot;);
      if (inFile == NULL )
      {
          return false;
      }
  
      char word[LENGTH];
      while (fscanf(inFile, &quot;%s&quot;, word) != EOF)
      {
          printf(&quot;%s\n&quot;, word);
      }
  }
  </code></pre>