Variable-Length Record Addition Demos (Cont.)
The following interface is displayed after the button Start processing of the previous interface is clicked on.
The button Show file content and size is implemented by using the following commands:
elsif ( $FORM{select} eq "show" ) {
system( "cat books.txt; echo '\n'; wc books.txt" );
}
The wc prints the number of bytes, words, and lines in files.
The interface below is displayed after the button Enter books is clicked on.
The implementation of insertion will be given in the following slides.
The operations deletion and update will not be discussed here.
You may use the files avail1.txt or avail2.txt directly in the demonstrations.