Web and email hosting - Chapter 16 Files and Streams 927 Fig. 16.9Credit

Chapter 16 Files and Streams 927 Fig. 16.9Credit inquiry program (part 7 of 7). Fig. 16.9 16.6 Updating Sequential-Access Files Data that is formatted and written to a sequential-access file as shown in Section 16.4 cannot be modified without reading and writing all the data in the file. For example, if the name Whiteneeded to be changed to Worthington, the old name cannot simply be overwritten. Such updating can be done, but it is awkward. To make the preceding name change, the records before Whitein a sequential-access file could be copied to a new file, the updated record would then be written to the new file, and the records after Whitewould be copied to the new file. This requires processing every record in the file to update one record. If many records are being updated in one pass of the file, this technique can be acceptable.
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply