home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
filerepl.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
853b
|
36 lines
############################################################################
#
# File: filerepl.icn
#
# Subject: Program to replicate file
#
# Author: Ralph E. Griswold
#
# Date: January 2, 1999
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program writes standard input to standard a specified number of
# times. Number of replications is given on command line.
#
# NOTE: Since the input stream is stored internally, standard input
# must be of finite length.
#
############################################################################
procedure main(args)
local file
file := []
while put(file, read())
every 1 to args[1] do
every write(!file)
end