diff options
author | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
commit | ab8cc85adde879fb963c94d15675783f2cf4b183 (patch) | |
tree | c202482327f474583b750b2c45dedfc4e4312b1d /src/input/textfile.input.pamphlet | |
download | open-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz |
Initial population.
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} |