home *** CD-ROM | disk | FTP | other *** search
-
- // example: copy lines
-
-
- // read the data file
- input "data2.in"
-
- // copy the report-header - up to the start of the
- // first group
- copy lines until (line beginsWith "Group")
-
- // loop over each group
- do
-
- // write the "Group" line
- write
-
- // copy the group summary - up to the start of
- // the group detail section
- copy lines until (line beginsWith "Detailed Analysis")
-
- // skip the detailed analysis - up to the start of
- // the next group
- skip lines until (line beginsWith "Group")
-
- // comment out the next line to make the program run faster
- refresh
-
- loop until (noneLeft input)
-
-