diff options
Diffstat (limited to 'src/input/textfile.input.pamphlet')
-rw-r--r-- | src/input/textfile.input.pamphlet | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/input/textfile.input.pamphlet b/src/input/textfile.input.pamphlet new file mode 100644 index 00000000..1a81e924 --- /dev/null +++ b/src/input/textfile.input.pamphlet @@ -0,0 +1,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} |