title: How do I allow the user to select which file to read? c++
body: <p>I want to allow the user to select a text file, and then for the text file to be read by c++ for content analysis.</p>
  
  <p>This code opens any file selected by the user:</p>
  
  <pre><code>    system("explorer/select,c:\\Windows\\System32\\calc.exe");
  </code></pre>
  
  <p>the calc.exe command at the end means it executes the selected file, but I want the file to be read, not executed, how do I do this?</p>