Why not use SQLite as an intermediary?
Read the Text-File (CSV?) line by line (or load it into a StringList) and throw it into a SQLite InMemory-Database.
If you don't want dependencies, then it's Do it by hand, since the TDataSet-property of TDatabase is ReadOnly
Everything depending on the Amount and Complexity of Data