
Patrick B. answered 05/24/19
Math and computer tutor/teacher
Step #1
opens the text file
reads the first record
Step #2
open an output file temp_out.dat
Step #4
while not end of file
Step #4a
shows the record to the user by displaying it on the screen
Step #4b
as the use if he or she wants the record
Step #4c
if yes, writes the record to temp_out.dat
Step #4d
reads the next record
end while
Step #5
closes the files
deletes the text file
Step $6
renames temp_out.dat to the same name as the original input text file