title: How do I check whether a file exists in C++ for a Windows program?
body: <p>This is for a Windows-only program so portable code is not an issue.</p>
  
  <p>I need simply:</p>
  
  <pre><code>bool DoesFileExist( LPWSTR lpszFilename )
  {
      // ...
  }
  </code></pre>