Hi All,
I have taken up this home project just for my pastime.
My objective is to take a html file and then make a complete new webpage with a specific keyword.
It basically is a find and replace type of method where my existing file contains a specific keyword where my parser comes through and edits.
So my basic approach was to ;
1)Read the initial html file line by line and move them into a vector containing strings
2)Then use the parse function on the string and then paste the string into a file.
I have pretty much succeeded doing all the above. And it the created page looks fine on my computer.
But when i upload it into my server. nothing is visible and when i open it up with a html editor Only The First line which is a html tag
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Is visible.
The rest of the html doesnt seem to be displayed.
Here is a basic example of what i was doing
while(!inputfile.eof())
{
string k;
getline(inputfile,k);
parse(k);
outputfile<<k<<endl;
}
Well, As i have not succeeded in getting my desired output. I wanted to ask whether anyone knows why this is happening?