//Simple example that converts a wordlist from plaintext to plaintext and hash pair tab delimited.
#include <string>
#include <sstream>
#include <iostream>
#include <cctype>
#include <fstream>
using namespace std;
int main (int argc, char* argv[3])
{ofstream myfile;
myfile.open (argv[2]);
{ string line; ifstream infile (argv[1]);
myfile << "<html>" << endl;
myfile << "<head><title>My Local Webpages</title> </head>" << endl;
myfile << "<body>" << endl;
myfile << "<p>" << endl;
myfile << "<table>" << endl;
myfile << "<tr>" << endl;
if (infile.is_open())
{ while ( getline (infile,line) )
myfile << "<td>" << "<img src='" << line << "'>" << "</img>" << "</td>" << endl;
infile.close();
myfile << "</tr>" << endl;
myfile << "</table>" << endl;
myfile << "</p>" << "</body>" << endl;
myfile.close();
} else cout << "Unable to open file" << endl;
}
return 0; }
Saturday, December 26, 2015
Photo gallery generator
I never finished it. I might get around to it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment