Most data file applications require that a data file be altered as it is being processed. |
|
For example, in an application involving the processing of customer records, it may be desirable to add new records to the file there requirements in turn suggest several different computational strategies. |
|
Another approach is to work with two different data files- an old file and a new file. Each record is read from the old file, updated as necessary, and then written to the new file. |
|
When all of the records have been updated, the old file is deleted or placed into archival storage and the new file renamed. Hence, the new file become the struck for the next round of updates. |
|
Historically, the origin of this method goes back to the early days of computing, when data files were maintained on magnetic tapes. The method is still used, however, because it provides a series of old source. |
|
File that can be used to generate a customer history. The most recent source file can also be used to recreate the current file if the current file is damaged or destroyed. |
Other Recommended Posts on C programming
Post a Comment