title: My program is not outputting anything from the file :/
body: <p>I am doing the following exercise:</p>
  
  <p><img src="https://i.stack.imgur.com/uuxpW.png" alt="enter image description here"></p>
  
  <p>My code:</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;fstream&gt;
  #include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  
  int main()
  {
      ifstream inFile;
      ofstream outFile;
  
      double currentSalary, increaseRate, updatedSalary;
      string firstName, lastName;
  
      inFile.open ("Data.txt");
      outFile.open("Output.dat");
      outFile &lt;&lt; fixed &lt;&lt; showpoint &lt;&lt; setprecision(2);
      inFile &gt;&gt; lastName &gt;&gt; firstName;
      inFile &gt;&gt; currentSalary &gt;&gt; increaseRate;
      updatedSalary = currentSalary * (1 + increaseRate / 100);
      outFile &lt;&lt; firstName &lt;&lt; " " &lt;&lt; lastName&lt;&lt; " " &lt;&lt; updatedSalary &lt;&lt; endl;
      inFile &gt;&gt; lastName &gt;&gt; firstName;
      inFile &gt;&gt; currentSalary &gt;&gt; increaseRate;
      updatedSalary = currentSalary * (1 + increaseRate / 100);
  
      outFile &lt;&lt; firstName &lt;&lt; " " &lt;&lt; lastName&lt;&lt; " " &lt;&lt; updatedSalary &lt;&lt; endl;
      inFile &gt;&gt; lastName &gt;&gt; firstName;
      inFile &gt;&gt; currentSalary &gt;&gt; increaseRate;
      updatedSalary = currentSalary * (1 + increaseRate / 100);
      outFile &lt;&lt; firstName &lt;&lt; " " &lt;&lt; lastName&lt;&lt; " " &lt;&lt; updatedSalary &lt;&lt; endl;
  
      system("PAUSE");
      return 0;
  }
  </code></pre>
  
  <p>But when I debug it with MS VS.. it just says "press any key to continue..."</p>
  
  <p>Where do I add the Data.txt file?</p>