Search function in huge text file

I have a huge file containing a lot of data each line (name of the song, artist, album, genre), it’s about 1,5 GB, can anyone give me some advices or tips on writing an efficient method to search in that huge file?


Use a database instead?

I can’t :frowning: I don’t generate the datas, unfortunately.

Is it an option to generate a database from the data and reuse it?

Yes, good idea it is possibile! But, I’m not very familiar with databases, what kind of database should I use and where can I go to learn using them?

SQLite would be your best bet. I think that site is and might be a good place to start.

Thank you very much Kem!

There is also the example/Database/SQLite/folder containing two sample projects for study.