I have a huge text file (~5GB) which is the database for my program. During run this database is read completely many times with string functions like string::find(), string::at(), string::substr()…
The problem is that this text file cannot be loaded in one string, because string::max_size is definitely too small.
How would you implement this? I had the idea of loading a part to string->reading->closing->loading another part to same string->reading->closing->…
Is there a better/more efficient way?
With a real database, for instance SQLite. The performance improvement from having indexes is more than going to make up for your time learning another API.