title: fread. fseek. ftell. " warning: value computed is not used "
body: <p>how to instead of</p>
  
  <pre><code>char text[10000]; 
  </code></pre>
  
  <p>do</p>
  
  <pre><code>char text[fp_len];
  </code></pre>
  
  <p>i also get this warning:</p>
  
  <blockquote>
    <p>warning: value computed is not used</p>
  </blockquote>
  
  <pre><code>FILE *fp;
  fp = fopen(path, "r");
  int fp_len;
  fseek(fp, 0, SEEK_END)+1;
  fp_len = ftell(fp); 
  fseek(fp, 0, SEEK_SET);
  printf("%d---", fp_len);
  
  char text[10000];
  fread(text, fp_len, 1, fp);
  
  printf("%s", text);
  </code></pre>
  
  <p>should i also add:  </p>
  
  <pre><code>text[]= '\0'
  </code></pre>
  
  <p>to the bottom. ( above printf )</p>