title: Writing gibberish to a file?
body: <p>So I'm opening a file, lets call that file key.txt</p>
  
  <pre><code>    FILE *fp;
      fp = fopen("key.txt", "r");
  </code></pre>
  
  <p>Now lets say I have another file (fa) that I opened with code "a" to append to it. Now im reading all of the characters from fp and appending each alphabetical character to the file fp, but it's appending MORE than that.</p>
  
  <pre><code>    char c;
      do {
          c = getc(fp);
          if(isalpha(c)){
              fprintf(fa, &amp;c);
              fprintf(fa, "\n");
          }
       } while(c != EOF);
  </code></pre>
  
  <p>Ok so this looks good to me, now it is adding each alphabetical character to the file, but the issue is, it's added even <strong>MORE</strong> characters to a single line of text. I'm trying to pinpoint this issue.
  Here is an example, inside key.txt we have</p>
  
  <pre><code>    lol
      xd
  </code></pre>
  
  <p>The output file fa has the contents</p>
  
  <pre><code>    l&lt;82&gt;^0)y^?
      o&lt;82&gt;^0)y^?
      l&lt;82&gt;^0)y^?
      x&lt;82&gt;^0)y^?
      d&lt;82&gt;^0)y^?
  </code></pre>
  
  <p>So im not getting what's going on here. How do I fix this? Im not sure what the exact issue is</p>