When creating a file in C++, where is the created file saved at? : <p>After executing the code, i couldn't find the newly created file in my desktop. Could anyone tell where a created file will be saved in?</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
using namespace std;

int main() 
{
     ofstream testfile("testing.txt");
     if (testfile.is_open())
     {
        testfile &lt;&lt; "This is a line.\n";
        testfile &lt;&lt; "This the second line.\n";
        testfile.close();
     }
     else cout &lt;&lt; "Unable to open file";
     return 0;
}
</code></pre>
