title: CLion C++ can't read/open .txt file in project directory
body: <p>I have a .txt file in my project directory that I made and populated with data.</p>
  
  <p>directory structure looks like:</p>
  
  <pre><code>/Users/asd/ClionProjects/ProjectWithTemplates/
  main.cpp
  cmake
  twoday.txt
  </code></pre>
  
  <p>here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;array&gt;
  #include &lt;cmath&gt;
  #include &lt;fstream&gt;
  
  
  using namespace std;
  
  /* print array prototype */
  template &lt;size_t N&gt;
  void printArray(const array&lt;double , N&gt; &amp; arr);
  
  /* mean function prototype */
  template &lt;size_t N&gt;
  double meanArray(const array&lt;double , N&gt; &amp; arr);
  
  /* standard deviation prototype */
  template &lt;size_t N&gt;
  double sDeviation(const array&lt;double , N&gt; &amp; arr);
  
  int main() {
  
      string date1;
      string date2;
  
      array&lt;double, 24&gt; day1Temps;
      array&lt;double, 24&gt; day2Temps;
      array&lt;double, 3&gt; testarr = {75,70,65};
  
  /* TESTING PURPOSES */
      printArray(testarr);
      sDeviation(testarr);
      cout &lt;&lt; "standard deviation of array is: " &lt;&lt; sDeviation(testarr) &lt;&lt; endl;
      cout &lt;&lt; "mean of array is: " &lt;&lt; meanArray(testarr) &lt;&lt; endl;
  /* END TESTING */
  
      ifstream inputFile;
      inputFile.open("twoday.txt");
  
      if(inputFile.is_open())
      {
          inputFile &gt;&gt; date1;
          inputFile &gt;&gt; date2;
  
          for(int i = 1; i &lt; day1Temps.size(); ++i)
          {
              inputFile &gt;&gt; day1Temps[i];
          }
  
          for (int j = 1; j &lt; day2Temps.size(); ++j) {
              inputFile &gt;&gt; day2Temps[j];
          }
      } else cout &lt;&lt; "File unable to open. File does not exist." &lt;&lt; endl;
  
  
      return 0;
  }
  
  /* print array defination */
  template &lt;size_t N&gt;
  void printArray(const array&lt;double , N&gt; &amp; arr){
  
      for(const auto &amp; i : arr)
      {
          cout &lt;&lt; i &lt;&lt; " ";
      }
      cout &lt;&lt; endl;
  }
  
  /* mean function defination */
  template &lt;size_t N&gt;
  double meanArray(const array&lt;double , N&gt; &amp; arr){
  
      double sum;
  
      for (const auto &amp; i : arr) {
          sum+=i;
      }
  
      return sum/arr.size();
  }
  
  /* standard deviation defination */
  template &lt;size_t N&gt;
  double sDeviation(const array&lt;double , N&gt; &amp; arr){
  
      double mean = meanArray(arr);
      double total;
  
      for (const auto &amp; i : arr){
          total+=pow(i - mean, 2);
      }
      return sqrt(total/arr.size());
  }
  </code></pre>
  
  <p>Eveything else works fine besides my file IO. Very strange.</p>
  
  <p>adding some details..............more details? :(</p>