title: Why can't I close the file
body: <p>I have a problem when I close the file fc. 
  Here is my code</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;wchar.h&gt;
  int main()
  {
     FILE* fc = fopen("template.txt","rt,ccs=UTF-8");
     wchar_t subStr[2300];  
     fread(subStr,sizeof(wchar_t),2300,fc);
     wchar_t* scrStr=new wchar_t[2300];
     wcscpy(scrStr,subStr);
     fclose(fc);
     return 0;
  }
  </code></pre>