aboutsummaryrefslogtreecommitdiff
path: root/src/input/textfile.input.pamphlet
blob: 1a81e9246577254363d4f9de0555b7e1f4b8d3f6 (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
32
33
34
35
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input TEXTFILE.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input generated from TextFileXmpPage
)clear all

f1: TextFile := open("/etc/group", "input")
f2: TextFile := open("/tmp/MOTD", "output")
l := readLine! f1
writeLine!(f2, upperCase l)
while not endOfFile? f1 repeat
    s := readLine! f1
    writeLine!(f2, upperCase s)
close! f1
write!(f2, "-The-")
write!(f2, "-End-")
writeLine! f2
close! f2
)system rm /tmp/MOTD
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}