Re: FW: Need som ehelp in ZLIB
"pybvv" <[email protected]> Wed, 19 Mar 2003 21:16:20 -0000
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Ponnolu, Reddy" <reddy.ponnolu@v...> wrote: > > Subject: Need som ehelp in ZLIB > > > I am using gzopen(), gzread() on windows for reading *.gz files. > > I have some issues with gzread. > > I am opening those files using gzopen and reading thru gzread. > > But here I am not able to read complete file. > > Only few bytes I am getting. > Don't forget to open the file in binary mode, with gzopen (..., "rb"). In Linux, this "binary" option is ignored, but with Windows this option is important. Otherwise, it will open the file in tranlate/text mode, and it will stop reading the file, after it encounters an EOF/Ctrl-Z character. pybvv