shellnotes/util/loggersrc/sdfailed.cpp
dmarakom6 cdc44e8c7c Make names less confusing
Logfiles to see: logs/
Loggers executables: util/exec/
Loggers source code: util/loggersrc/
Maybe I will merge exec with loggersrc in the near future, in case it's very complicated for users.
2021-06-15 13:51:22 +03:00

23 lines
No EOL
514 B
C++

/*
shellnotes - sdfailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
ofstream sdfailed;
std::ofstream outfile ("../../logs/sdfailed.txt", std::ios_base::app);
outfile << "INVALID PATH FOR DEFAULT EDITOR/FOLDER IN " << dt << "\n";
outfile.close();
return 0;
}