title: C -comparing char with new line
body: <p>I have one code where I want to check the number of rows in a file. The file has 6 rows. I try compare with new line '/n', but the result is not ok. Here is the code. Please help :)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  int main ()
  {
      FILE*code;
      int NumbRow = 0;
      char c;
  
      code = fopen("SMS.txt", "r");
      if(code==NULL)
      {
          printf("I cant read from file");
          return;
      }
  again:
      while ((c=fgetc(code)) !=EOF)
      {
          if (c=='/n')
          {
              NumRow ++ ;
          }
          if (c!='/n')
          {
              goto again;
          }
      }
      printf ("Number of rows is : %d", NumRow);
      return 0;
  }
  </code></pre>