Solved

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

Posted on 2004-08-14
6
347 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
  • 3
  • 2
6 Comments
 
LVL 30

Expert Comment

by:Axter
Comment Utility
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
Comment Utility
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
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:shairankhan
Comment Utility
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 125 total points
Comment Utility
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
Comment Utility
Hi I have found another with the source code

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now