title: File iteration I/O C programming
body: <pre><code>int main(int argc, char** argv) {
  
       char line[100];
  
  
       f = fopen("test.text", "r+");
       while (fgets(line, sizeof line, f)) {
                      size_t len = strlen(line);
                      if (strlen(line)!=*argv[1]){
                      fputs("Oh noez Errorz\n", stderr);
              }
  }
  </code></pre>
  
  <p>Hey guys, I'm reall confused I'm trying to check an argument to see if the same size as first line of characters in a textfile.</p>
  
  <p>So if the textfile contained </p>
  
  <p>'AA'</p>
  
  <p>and the argument was given was infact '2'. Then it would be logically correct, and not throw an error.</p>