Just realized that our VFS has the FS_Gets function, basically fgets but for virtual layered filesystem that we have.

The function was added by Uncle Mike back in 2007 and never again ever since.

By the way, our VFS implementation has its roots in DarkPlaces. It still resembles it, though we separated archive functions, added file names caching for case-insensitive FS emulation and implemented Valve's VFileSystem009 interface.