Download this file
15 lines (11 with data), 320 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13 | #include "Properties.hh"
#include <iostream>
#include <fstream>
int main(int argc, char** argv) {
log4cpp::Properties properties;
std::string inFile = (argc > 1) ? argv[1] : "log4cpp.properties";
std::ifstream in(inFile.c_str());
properties.load(in);
properties.save(std::cout);
return 0;
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.