I have a CGI application in C that creates an html page by saving a char* as a html page:
void saveTextFile(const char *filename, const char *str){.......}
called as
saveTextFile("..\\index.html",outputFile);
How do I use zlib to take as input the "outputFile" char array and output a zipped html page with appropriate headers?
Would the gzopen be used here instead of my saveTextFile function?
Any advice is appreciated. Thanks.