Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-08-14
6
Medium Priority
?
473 Views
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?
0
Comment
Question by:shairankhan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 11799635
Your quesion is to general.

Please be more specfic.

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

Author Comment

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

Expert Comment

by:Jase-Coder
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
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:shairankhan
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?
0
 
LVL 11

Accepted Solution

by:
Jase-Coder earned 500 total points
ID: 11800594
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
 
LVL 11

Expert Comment

by:Jase-Coder
ID: 11800608
Hi I have found another with the source code

http://me.in-berlin.de/~bitrot/grok.html
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

670 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