title: Check if file is present in some directory in c++
body: <p>I am reading a file from some directory using visual c++. How do i check if that file exists or not.
  If i use:</p>
  
  <pre><code>file.open("file.txt", ios::in);
  </code></pre>
  
  <p>where file is a member of fstream. This creates a file ifthat file is not present.
  How can i check if that file is present or not.
  Thank you</p>