database coding (XML, CSV, TXT) - newbie needs help...
Posted on 2003-03-03
i am right into coding a program, which i need to store some data in a database. since its only a little amount i dont want to use the BDE. i already did some experiments with a component for comma-separatet-text database from torry as well as using tclientdataset and its xml features. the huge problem i have is, that both solutions only provide for a pretty flat style database (like a phonebook). the data i have is laid out in the following way, and i want to store it in a single file (XML? or INI?)
system (one string)
coordinateX,coordinateY (two integers)
faction (one string)
connectsto (one ore more strings (would be values from sytem^) !)
station (one string)
system (from system ^)
coordinateX,coordinateY (two integers, other then the ones in system)
belongs (one string)
connectsto (one or more strings from station^)
its pretty hard for me to figure out, because im just beginning db-programming. i need a real good solution for this. the whole db has to be stored in only one file and i dont want additional dll's or stuff to ship with the executable.
i hope i made myself clear enough to undestand ?
Much thanks in advance,