Use BufferReader to read the database file's headers