title: Getting the file size in c++
body: <p>I have a file and I want to get the size of the file. I can use only <code>_wfopen</code> or <code>_wfopen_s</code> for opening the file because my file path type is <code>std::wstring</code>.</p>
  
  <pre><code>FILE* p_file = NULL;
  p_file=_wfopen(tempFileName.c_str(),L"r");
  fseek(p_file,0,SEEK_END);
  </code></pre>
  
  <p>but I am getting an error </p>
  
  <pre><code>error C2220: warning treated as error - no 'object' file generated  
  </code></pre>