How can I found out where ofstream is placing a file, or if it is simply failing to do so (and thus, why I cannot find it?)
. . . long section of legacy code . . .
std::ofstream a_file("debugLog.txt", std::ios_base::app);
a_file << "tgt";
a_file.close();
}
BREAKPOINT
With
#include <fstream>
#include <iostream>
#include <stdio.h>
added to the applications precompiler directives (this is a legacy war-gaming application I'm working on as an apprentice), the application builds and executes without problem. My breakpoints function as they did before I added this code but I cannot find that debuglog.txt file anywhere!?
Is there a way in the Visual Studio Configuration Properties to specify the directory for this sort of thing?