I want to develop an application that uses a simple text file xxxx.txt with about 25.000 lines or 100000 paragraphs as database.
I'm concerned about speed and efficiency, because it is meant to be sort of a database and I need to retrieve entries randomly by providing a searching string.

May anyone give some hints on what approach I should focus? (APIs, overall structure). Of course I could simply try some ways of doing it, but maybe someone came across the same problem and may support me with some tips!
Thank you very much,
SubAnimage