If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Flat File DB in C++

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-03, 17:38
raff raff is offline
Registered User
 
Join Date: Sep 2003
Location: USA, Maryland
Posts: 1
Question Flat File DB in C++

Im making a C++ Flat Database and Im curious on everyones opinions on it. This program will be used by a local camp to keep track of campers info and will hold about 1000 entries, and in every entry there is about 70 feilds. Right now the entries are defined by a class, person and stored in an array.
Example:

class person{
char* text[55];
double nums[7];
bool checks[3];
}

And Then a stl-vector holds all of the people. The database is saved in a flat text file. This text file stores every person with a newline dividing people and a $ dividing feilds.
Example:
1$Ralph$Smith$444-444-4444$.... \n
2$Bob$Bobbinson$444-555-6666..... \n

Is this an O.K. Solution for a DB that might hold up to 2000 people? I know PHP and MySQL would have been better but it wasnt an option, and insight would be very helpfull.

Thanks
Raff
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On