Purchase Solution

Saving database records to an external file

Not what you're looking for?

Ask Custom Question

Create and prepare a disk file for records containing the structure used in attached file.

Store the account records in the file using the same hashing/rehashing technique used for storing them in an array of structures.

* i just need help storing accounts to a file instead of a structure using standard c ex: fopen fclose,

feel free 2 ask any questions

Attachments
Purchase this Solution

Solution Summary

How do I create database records and save them to an external file? This was the question answered by the OTA. The OTA references some possibilities and lists some available websites as references for different techniques one may use to accomplish a solution to this question. Some familiarity with programming in C is assumed.

Solution Preview

Ok, from the sound of it, you have everything pretty much done, you're just having problems figuring out how to save the data to an external file. If I've understood the gist of it correctly, the following should help.

First, you already have your textbook definitions of fopen, fclose, etc... so I won't rehash that information. Instead, I will direct you to some websites that give examples of using those functions in code. By the way, I use the word function to mean structure. It's the way I learned C++. Hopefully I won't confuse you.

Visit http://www.decompile.com/cpp/faq/fopen_write_append.htm and review the examples Mr. Krauskopf gives using fopen. Notice that he gives two examples. One example makes many calls ...

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C++ Operators

This quiz tests a student's knowledge about C++ operators.