The new class is pluggable, to prepare for gzipped database files. For now, the TextFile class remains, and will be refactored away later.