#include "URL.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main(int argc, char* argv[]){
ifstream opendir("//Engr_asu/ECE352/computer_science.txt");
if (opendir == 0) {
cout << "Could not open input file" << endl;
}
ofstream fout("//Engr_asu/ECE352/ps2out.html");
if (fout == 0) {
cout << "Could not open output file" << endl;
}
fout << "<html><head><title>PS2 Output</title></head><body>" << endl
<< "<h1>PS2 Output</h1>" << endl << "<ul>" << endl;
URL next;
while (opendir >> next){
fout << "<li>" << next << endl;
}
fout << "</ul>" << endl << "</body></html>" << endl;
fout.close();
return 0;
}