Hello,
I am working with various log files, and I will be using the log file to extract certain criteria based on some condition. However, I need a program that will save a text file by today's date. Is there an easy way to accomplish this...maybe by calling a library? Below is just an example of outputting to a text file by manually putting today's date, however, I would rather automate that.
Any insight/recommendations would be great. Thanks!
Code:#include <iostream> #include <fstream> using namespace std; int main () { ofstream outF; outF.open ("20070709.txt"); outF << "Output Text Junk Here..."; outF.close(); return 0; }



LinkBack URL
About LinkBacks



