Storing simple Information structures on harddisk

Hey fellows,

to gain my first experiences with c++ I decided to implement a simple vocabulary trainer. I like to emphasize simple, because I don't want to use a database for storing the vocabularies but some sort of I/O mechanism to write it on the hard disk.

I am pretty sure that there are several ways to implement this... e.g.
- simple txt file with some sort of separator (language1||language2||sample_sentence)
- to write an two-dimensional array (or other object) with strings

But what is the best solution from you perspective?

cheers
Lomungo
A simple text file is the best solution.
As you're storing strings anyway, the delimited txt file approach is prob best.

I would prob. use tab as the delimiter, so you can use commas, etc. in the sample sentence. It would also allow your langauge1/language2 entries to be compound forms with no extra coding.

And tab delimited text (as well as comma-delimited, etc. text) is understood by both Microsoft Excel and OpenOffice Calc, so you can use them to check and update your data.

Andy

P.S. Are you working on a console app?
Last edited on
Topic archived. No new replies allowed.