From: http://blog.chinaunix.net/uid-24607609-id-2118143.html today saw a gzopen function, searched his series of functions, and related usage C + + use Zlib library (-) 2010-10-07 09:37:35
Category: C/
1, Gzopen Open the zlib algorithm compressed files
Gzfile GZ = gzopen (char* filename, "RB");
Opens a zlib stream that allows you to read the file using that stream
2. Gzeof usage is similar to the feof in C and determines whether the end of the file is reached.
int gzeof (Gzfile gz);
3. Gzread reading data from a file
int Gzread (gzfile file, VOIDP buffer, unsigned len);
4, int gzgetc (Gzfile gz)
Read a character from a file
5, char* gzgets (gzfile file, char* buffer, int len)
Read len-1 characters from a file, or a line of characters
Category: C/
1, Gzopen Open the zlib algorithm compressed files
Gzfile GZ = gzopen (char* filename, "RB");
Opens a zlib stream that allows you to read the file using that stream
2. Gzeof usage is similar to the feof in C and determines whether the end of the file is reached.
int gzeof (Gzfile gz);
3. Gzread reading data from a file
int Gzread (gzfile file, VOIDP buffer, unsigned len);
4, int gzgetc (Gzfile gz)
Read a character from a file
5, char* gzgets (gzfile file, char* buffer, int len)
Read len-1 characters from a file, or a line of characters
"Go" C + + use Zlib library (-)