title: Command line error
body: <p>The following code is supposed to read a text file character by character and count the frequency of their occurrence. However, on the Linux command line, it compiles and when I try to run it by the command <code>./program&lt;file.txt</code> it shows</p>
  
  <pre class="lang-none prettyprint-override"><code>useage: huffman &lt;filename&gt;
  </code></pre>
  
  <p>I don't know what's the error.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;assert.h&gt;
  int count[26];
  int main(int argc, char ** argv)
  {
    unsigned char c;
    FILE * file;
  int i;
  
    if ( argc != 2 ) {
      fprintf(stderr, "Useage: huffman &lt;filename&gt;\n");
      exit(1);        // exit with error code
    }
  
    file = fopen(argv[1], "r");
    assert( file != NULL );
  c = fgetc(file);
    while( !feof(file) ) {
     c = fgetc(file);
     count[c-'a']++;
  }
  for(i=0; i&lt;26; i++)
  printf("count[%c]=%d\n",65+i,count[i]);
     fclose(file);
  return 0;
  </code></pre>