hey im new to this board. anyway im writing this program that is supposed to allow a user to read a text file full of records and display it on the screen. it is also supposed to allow a user to enter new records and have the record or records be appended to the file. now anotehr part of the program is the user can delete records. but you dont really delete them you just mark the as deleted so the progrma wont read them. here is a generic sample of what the file might look like:
-----
12345|John|Doe|724-213-4567|3215 Some Street|a city|a
state|16057|0902|3.67|110 A|210 A|343 B| …
23456|Joe|Smith|724-213-4678|35 Another Street|a city|a
state|16057|0902|3.04|110 B|210 B|343 B| …
*****
+++++
34567|Alan|Scott|412-213-4567|215 New Street|city B|a
state|15221|0902|1.85|110 D|210 D|343 F| …
*****
where the minuses start are records that are marked as deleted and where the stars are is where the deleted records end. where the plus signs are is where records that are added start and again where the stars are ends the added records.
my question is how do i get the program to read this text file? someone told me to use the get function butbut im not qutie sure how i should invoke that or if that is the right way to go. any input by anyone would be greatly appreciated.