title: C++ C4996 error with _wfopen function
body: <p>I have 4 header files, all of them open data from a txt file with _wfopen(), like below:</p>
  
  <pre><code>FILE* file = _wfopen(L"data.txt",L"r,ccs=utf-8");
  </code></pre>
  
  <p>VC++ gives me an error C4996 but in one header file only, the other three have no error at all. How can I fix this ? 
  UPDATE:
  My professor gave me this code.I compiled it and there's only C4996 warning.Since I need to reuse it, I created a new project and copy everything in his code into the new project.Then it gave me a C4996 error. </p>