simple flat file database in c or c++ in redhat9?

Posted on 2004-08-14
Last Modified: 2012-05-05
can anyone tell me the simple falt file database having options like edit,delete,search,add in c or c++ in redhat 9?
Question by:shairankhan
  • 3
  • 2
LVL 30

Expert Comment

ID: 11799635
Your quesion is to general.

Please be more specfic.

What do you want to know about a flat file database?

Author Comment

ID: 11799661
i mean the code should use simple text file to save records or change, no tools or scuh things.
LVL 11

Expert Comment

ID: 11799796
well you could have an array that read the data from file into some structure you have created then to manipulate the data you just perform operations on the data structure array. Once you have finished write it all back to the file.

To add to your database add a new element to the array that is holding th orginal data from the file.
To edit the data just change the values your structure elemets are holding.
To search just loop through your array.
and to delete..well it depend on your strcutre

If you can be more specific I may be able to help more
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 11800034
i know i can do this but i want some sample database, i have already made it in c in NT but not on linux so can tell me the link to any sample flat file database in linux having options like edit, add , delete and search?
LVL 11

Accepted Solution

Jase-Coder earned 125 total points
ID: 11800594
I would have thought the coding would be the same.

you might something on

here is a flat file database manager for *nix
LVL 11

Expert Comment

ID: 11800608
Hi I have found another with the source code

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question