On 07-Mar-2000 Shao Zhang wrote: > Hi, > It seems that libbz2 does not have a function that similar to > fgets or gzgets. > > Does anyone know how to do it using the libbz2 functions? > my understanding is that you do the file reading in your own code (or another libraries) and simply pass the input to libbz2. The headers and what not should explain it. You can also grab the bzip2 source, as it uses the lib to do its work.