title: C++ an VS error: <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOVED
body: <p>I coded in <strong>C++</strong> on <strong>Visual Studio</strong> (Windows 10) and got this error:</p>
  <pre><code>#error The &lt;experimental/filesystem&gt; header providing std::experimental::filesystem is deprecated by Microsoft \
  and will be REMOVED. It is superseded by the C++17 &lt;filesystem&gt; header providing std::filesystem. \
  You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning.
  </code></pre>
  <p>With this headers:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  #include &lt;windows.h&gt;
  #include &lt;filesystem&gt;//If I will disable it nothing happens.
  
  #include &lt;experimental/filesystem&gt; //If I will disable it happens another error.
  namespace fs = std::experimental::filesystem; 
  
  using namespace std;
  </code></pre>
  <p>I've tried: <code>#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING</code> in the main cpp file. It didnt help.</p>
  <p>So then I paste this code from <a href="https://stackoverflow.com/questions/53365538/how-to-determine-whether-to-use-filesystem-or-experimental-filesystem">here</a>:</p>
  <pre><code>#ifdef __cpp_lib_filesystem
      #include &lt;filesystem&gt;
      using fs = std::filesystem;
  #elif __cpp_lib_experimental_filesystem
      #include &lt;experimental/filesystem&gt;
      using fs = std::experimental::filesystem;
  #else
      #error &quot;no filesystem support ='(&quot;
  #endif
  </code></pre>
  <p>Didn't helped too.</p>
  <p>What is the easiest way to get out that error?</p>