summaryrefslogtreecommitdiff
path: root/ipl/progs/catlines.icn
blob: 026808e61f642b78d808589326349227c5640870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
############################################################################
#
#	File:     catlines.icn
#
#	Subject:  Program to concatenate lines of a file
#
#	Author:   Ralph E. Griswold
#
#	Date:     January 14, 1999
#
############################################################################
#
#  This file is in the public domain.
#
############################################################################
#
#  This program concatenates all the lines from standard input and
#  writes the result to standard output.
#
############################################################################

procedure main()
   local line

   line := ""

   while line ||:= read()

   write(line)

end