Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 532
  • Last Modified:

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

can anyone tell me the simple falt file database having options like edit,delete,search,add in c or c++ in redhat 9?
0
shairankhan
Asked:
shairankhan
  • 3
  • 2
1 Solution
 
AxterCommented:
Your quesion is to general.

Please be more specfic.

What do you want to know about a flat file database?
0
 
shairankhanAuthor Commented:
i mean the code should use simple text file to save records or change, no tools or scuh things.
0
 
Jase-CoderCommented:
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
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 
shairankhanAuthor Commented:
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?
0
 
Jase-CoderCommented:
I would have thought the coding would be the same.

you might something on

http://sourceforge.net/


here is a flat file database manager for *nix
http://www.ibiblio.org/pub/Linux/apps/database/flatfile/
0
 
Jase-CoderCommented:
Hi I have found another with the source code

http://me.in-berlin.de/~bitrot/grok.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now