{\r
// set template\r
std::string templatestr="<html><head></head><body><a href=\"home.htm\">Home</a><br><h1>Could not open template.htm! Place in program directory and restart!</h1><br>[CONTENT]</body></html>";\r
- FILE *infile=fopen("template.htm","r+b");\r
+ FILE *infile=fopen("template.htm","rb");\r
if(infile)\r
{\r
fseek(infile,0,SEEK_END);\r