where to store data

In the development of a win 32 console application in c++, i am required to use data which is updated frequently.

ex: In the booking of a train tickets after each transaction the availability of seats are decremented .For Each execution of program i should get the current availability.

my question is where should i store this data like availability of tickets inorder to acess it for the next execution of the program.
I used a text file but getting availability of different trains from the same text file found tedious.

thank you
I used a text file but getting availability of different trains from the same text file found tedious.

It shouldn't be.
However in theory, you could use one file per train.
Topic archived. No new replies allowed.