C language reading from file to char array
<p>I'm trying to read from file character by character into an array. Here is my code:</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

int main()
{
   FILE * fp;
   char abc[255];
   int i = 0;

   fp = fopen ("source.c", "r");

   while(fgetc(fp) != EOF)
   {
       fputc(abc[i], FILE *fp );
       printf("%c", abc[i]);
       i++;
   }

   fclose(fp);

   return(0);
}
</code></pre>

<p>I'm getting an error: </p>

<pre><code>main.c: In function 'main':
main.c:19:19: error: expected expression before 'FILE'
     fputc(abc[i], FILE *fp );
</code></pre>

<p>What does this error mean? What is wrong and how do I fix it?</p>