shellnotes/util/failed/ufailed.cpp
dmarakom6 fd1db35604 logs
2021-03-25 10:41:56 +02:00

22 lines
No EOL
467 B
C++

/*
shellnotes - ufailed.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);
std::ofstream outfile ("../../logs/ufailed.txt", std::ios_base::app);
outfile << "UPDATE FAILED IN " << dt << "\n";
outfile.close();
return 0;
}