Код: Выделить всё
#include
#include
#include
#include
std::string grab_file_extension(const std::filesystem::path& target_file) {
return target_file.extension().string();
}
std::string grab_file_file_name(const std::filesystem::path& target_file) {
return target_file.filename().string();
}
int main() {
char* user = std::getenv("USERNAME");
std::string file;
std::string line;
std::string keep_open;
int line_counter = 0;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79081713/could-somebody-tell-me-why-my-code-isnt-writing-to-the-log-file[/url]