Explain processing a data file, C/C++ Programming

Assignment Help:

Explain Processing A Data File?

Mainly data file applications needs that a data file be altered as it is being processed. For instance in an application involving the processing of customer records it perhaps desirable to add new records to the file either at the end of the file or interspersed among the existing records to delete existing records that to modify the contents of existing records or to rearrange the records and these requirements in turn suggest numerous different computational strategies.

Consider for instance the problem of updating the records within a data file. There are numerous approaches to this problem. Maybe the most obvious approach is to read each record from a data file update the record as necessary and then write the updated record to the same data file. But there are some troubles with this strategy. In particular it is hard to write and read formatted data to the same data file with no disrupting the arrangement of the data items within the file. Furthermore the original set of records may become unapproachable if something goes wrong during the program execution. Another approach is to work with two diverse data files - an old file (a source) and a new file. Every record is read from the old file the updated as necessary and then written to the new file. When each and every one of the records have been updated the old file is deleted or placed into archival storage and the new file renamed. Therefore the new file will become the source for the next round of updates.

 


Related Discussions:- Explain processing a data file

How can I fix this to, Write a program consisting of two functions (plus ma...

Write a program consisting of two functions (plus main). The first function should read in a number and then pass this back to main. This value should then be passed into a secon

Genetic disease, Many human diseases could be controlled by the knowledge o...

Many human diseases could be controlled by the knowledge of the gene’s structure and pattern. The human gene could be represented by four nucleotides. Each nucleotide is represente

Probabilistic hough transform, Two kinds of line detection are implemented ...

Two kinds of line detection are implemented in OpenCV, the Hough Transform and the probabilistic Hough transform. Assume that there are n feature points in an image and that it tak

Pointers, Pointers are just numbers, representing addresses in memory. You ...

Pointers are just numbers, representing addresses in memory. You can add to and subtract from pointers, for instance. It is pretty easy to make mistakes with pointer math, however,

Calculation, write a program to calculate the cuboid

write a program to calculate the cuboid

C/c++ program, luminous jewel polishing necklace,c/c++ programming

luminous jewel polishing necklace,c/c++ programming

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd