Slide 7.2: Variable-length record addition demonstrations (cont.) Slide 7.4: EnterBook.cpp Home |
Start processing
of the previous interface is clicked on.
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.
avail1.txt
or avail2.txt
directly in the demonstrations.