I seem to be a fan of doing things the hard way:
Code:
///////////////////////
void ExportResults()
///////////////////////
{
if(CursorY == 5)
{
fstream file_op("Results.html",ios::out);
file_op<<
"<html><head><title>Results</title></head>"
"<body vlink=""white" "alink=""white" "link=""white" "style=""color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"">"
"<center><img src=""RedInk.JPG""></center><br>"
"<span style=""color: rgb(255, 255, 255); font-family: arial;"">"
"Format: <br>"
"Author's Last Name: <br>"
"Author's First & Middle Name: <br>"
"Title: <br>"
"City: <br>"
"Publishing Company: <br>"
"Year: <br>"
"<br>"
"<br>"
"Formatted Works Cited Information: <br>"
"</span>"
"<br>"
"<br>"
"<br>"
"<br>"
"<br>"
"<br>"
"<br>"
"<br>"
"<br>"
"<br>"
"<hr>"
"<span style=""color: rgb(255, 255, 255); font-family: arial;""><font size=""-1"">"
"© Walker Burgin 2004<br>"
"If you found this program helpful please visit my website at <a href=""http://www.worldapart.ne1.net"">www.worldapart.ne1.net</a> and leave me a comment in my guetsbook. If you have any questions or suggestions <br>"
"please send me an email at [email protected]."
"</span></body></html><br>";
file_op.close();
system("Results.html");
}
}
The idea is to export the results of my program into a webpage so it can be easily copied into a document.
My problem is that as of now the program exports the html with no quotation marks. I've tried using \" but for some reason they're still
not coming out, any ideas?
Walker