A curious one is nvi, which uses the Berkeley DB RECNO interface to access a text file as an array of lines (RECNO = record number).