title: Ifstream cannot open file with amdinistrator rights
body: <p>I used this code to try to open and read the file (not empty), but ifstream did not work - it could not open the file: I addded the check on file opening and it showed, that ifstream even did not (could not) open the file.</p>
  
  <p>I gave administrator rights to the program, but ifstream still could not read the file.</p>
  
  <p>I also tried to find a path, where ifstream would read this file, but I did not success, and at last I tried to open file using the absolute path - but result is the same.</p>
  
  <p>The file is situated in the root folder of the program, but I placed it everywhere and nothing changed.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;fstream&gt;
  
  using namespace std;
  
  int main() {
      string s;
      ifstream file("fix.txt");
      if (file)
          cout &lt;&lt; "SUCCESSFULL OPENING" &lt;&lt; endl;
  
      while (getline(file, s)) {
          cout &lt;&lt; s &lt;&lt; endl;
          s += "+";
          cout &lt;&lt; s &lt;&lt; endl;
      }
  
      file.close();
  
      return 0;
  }
  </code></pre>