title: Open file by its full path in C++
body: <p>I want the user to give me the full path where the file exists and not just the file name. How do I open the file this way?</p>
  
  <p>Is it something like this:</p>
  
  <pre><code>ifstream file;
  file.open("C:/Demo.txt", ios::in);
  </code></pre>
  
  <p>This doesn't seem to work.</p>