title: C: fopen(); is producing unhandled exception error
body: <pre><code>if ((fp = fopen(argv[2], "r")) == NULL){
      printf("Failed to load file");
  }
  </code></pre>
  
  <p>I'm pretty new to C, I'm not sure why this is producing an error. It's opening a new window and saying</p>
  
  <pre><code>unhandled exception error. 
  </code></pre>
  
  <p>What does this error mean? I am using Visual Studio 2013</p>
  
  <p>Complete program:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  #pragma warning (disable:4996);
  
  FILE * fopen(char *filename,char *access);
  
  
  int main(int argc, char argv[]){
  
      FILE *fp = NULL;
      char fileContents[100] = { 0 };
  
  
      if ((fp = fopen(argv[2], "r")) == NULL){
          printf("Failed to load file");
      }
  
  }
  </code></pre>