Strategy For Storing Records In Plaintext Files

Introduction

Previously we have seen an implementation for a library catalog ( Mini IA Example – A library catalog). That implementation used binary files.

In this class video, we anticipate the scenario where will upgrade the library catalog to store information about people. We explore this implementation using plain text files. Plain text has the advantage that the datafile is easily viewable and editable.

Both examples use the strategy to load ALL DATA AT THE START of the program. Whenever any new data is added to the system, we save all data in structure arrays by calling our save() functions which OVERWRITE the older files.

In real world practice, overwriting files on every data addition would not be as efficient , however this strategy is the easiest to manage at our introductory level. Other strategies appends the data to the end of the file which involve testing for the end of file or managing sentinel file values.

See the Video Below:

Update:

2022-01-24 : Added introduction.

© 2021  Vedesh Kungebeharry. All rights reserved. 

SBA Word Processing Feedback 2021

See your video feedback here. These videos were created Thurs 28th Jan 2021

Group 1D

OptionSurnameFirst NameClassGroupLeader
DRamgoolamAshvin5A1DY
DDeosaranKhiran5P1D 
DGangaSuraj5A1D 
DJagroopsinghJoshua5A1D 
DRamnarineAmish5A1D 
DSawhShivum5A1D 

Group 2D

Feedback was given live in class. Submissions returned to students via email.

OptionSurnameFirst NameClassGroupLeader
DAliXavier5A3DY
DBasdeoDevan5N3D 
DDwarikaLiam5P3D 
DKingRomario5N3D 
DSookramAlex5A3D 
DWalcott-SmartJaymeel5P3D 

Group 3D

Feedback was given live in class. Submissions returned to students via email.

OptionSurnameFirst NameClassGroupLeader
DAliXavier5A3DY
DBasdeoDevan5N3D 
DDwarikaLiam5P3D 
DKingRomario5N3D 
DSookramAlex5A3D 
DWalcott-SmartJaymeel5P3D 

Group 4D

OptionSurnameFirst NameClassGroupLeader
DLodharGrant5P4DY
DAbidIsa5N4D 
DArjoonVivek5A4D 
DBhalekarAkshat5A4D 
DDeonarineDarius5A4D 
DLalbeharryJaden5A4D 

Group 5D

OptionSurnameFirst NameClassGroupLeader
DKhanAmeer5N5DY
DDalipsinghNicholai5A5D 
DEsareesinghVashish5P5D 
DHoseinJarvis5P5D 
DKhanTaariq5A5D 

Group 6D

OptionSurnameFirst NameClassGroupLeader
DDomanZachary5A6DY
DHarrypersadKyle5P6D 
DRamjattanShivan5A6D 
DRamkissoonJustin5P6D 
DSamlalTeeval5A6D 

Group 7C

OptionSurnameFirst NameClassGroupLeader
CMohammedIrshad5N7CY
CDookharanJared5P7C 
CRamadharNicholas5N7C 
CRamloganShivan5S7C 
CRamnathAdriel5S7C 
CSandySjezeh5P7C 

Group 8C

OptionSurnameFirst NameClassGroupLeader
CSankarPete5P8CY
CDassDeron5P8C 
CGopaulRandel5A8C 
CJumanConnor5P8C 
CTackoorBrandon5A8C 
CWalayAlex5P8C 

© 2021  Vedesh Kungebeharry. All rights reserved.