Generalized FILE and gzFile input/output routines