home *** CD-ROM | disk | FTP | other *** search
- ###########################################################################
- #
- # File: progary.icn
- #
- # Subject: Procedure to place program in a array
- #
- # Author: Ralph E. Griswold
- #
- # Date: June 12, 1992
- #
- ############################################################################
- #
- # This procedure creates an array with one element for each program token.
- # The program is read from file. The initial value of each element is value.
- #
- ############################################################################
-
- procedure progary(file, value)
-
- local A
-
- A := []
-
- while put(A, list(*read(f), value))
-
- return A
-
- end
-