What you are describing is a database. If you have access to one, you should probably use that. If you can only work with flat files, I think DBD::CSV might be a reasonable option. Then, you'd have to figure out how to handle it in C++, but that's another story. I assume that C++ has CSV libraries, right?
Cheers,
Ovid
Vote for paco!
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
| [reply] |
As Ovid said, this sounds like a database.
But one option that might be a fit is to use
Berkeley DB. That has both
Perl and C++ interfaces (though you will have to pay
a licensing fee to use it in a non-Open Source C++
program) and allows you to simultaneously access a very
large (though simple) data structure in both languages
and update it from either. | [reply] |