aboutsummaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex16
1 files changed, 11 insertions, 5 deletions
diff --git a/manual.tex b/manual.tex
index 8a6925b8..8e6e4786 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.19 1998/08/24 20:14:56 roberto Exp roberto $ 1% $Id: manual.tex,v 1.20 1998/11/13 16:48:48 roberto Exp roberto $
2 2
3\documentclass[11pt]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage,bnf} 4\usepackage{fullpage,bnf}
@@ -41,7 +41,7 @@ Waldemar Celes
41\tecgraf\ --- Computer Science Department --- PUC-Rio 41\tecgraf\ --- Computer Science Department --- PUC-Rio
42} 42}
43 43
44%\date{\small \verb$Date: 1998/08/24 20:14:56 $} 44%\date{\small \verb$Date: 1998/11/13 16:48:48 $}
45 45
46\maketitle 46\maketitle
47 47
@@ -2615,12 +2615,14 @@ Unless otherwise stated,
2615all I/O functions return \nil\ on failure and 2615all I/O functions return \nil\ on failure and
2616some value different from \nil\ on success. 2616some value different from \nil\ on success.
2617 2617
2618\subsubsection*{\ff \T{readfrom (filename)}}\Deffunc{readfrom} 2618\subsubsection*{\ff \T{readfrom (filename [, mode])}}\Deffunc{readfrom}
2619 2619
2620This function may be called in two ways. 2620This function may be called in two ways.
2621When called with a file name, it opens the named file, 2621When called with a file name, it opens the named file,
2622sets its handle as the value of \verb|_INPUT|, 2622sets its handle as the value of \verb|_INPUT|,
2623and returns this value. 2623and returns this value.
2624An optional \verb|mode| argument with the string \verb|"binary"|
2625opens file in binary mode (where this applies).
2624It does not close the current input file. 2626It does not close the current input file.
2625When called without parameters, 2627When called without parameters,
2626it closes the \verb|_INPUT| file, 2628it closes the \verb|_INPUT| file,
@@ -2639,13 +2641,15 @@ the number of files that can be open at the same time is
2639usually limited and depends on the system. 2641usually limited and depends on the system.
2640\end{quotation} 2642\end{quotation}
2641 2643
2642\subsubsection*{\ff \T{writeto (filename)}}\Deffunc{writeto} 2644\subsubsection*{\ff \T{writeto (filename [, mode])}}\Deffunc{writeto}
2643 2645
2644This function may be called in two ways. 2646This function may be called in two ways.
2645When called with a file name, 2647When called with a file name,
2646it opens the named file, 2648it opens the named file,
2647sets its handle as the value of \verb|_OUTPUT|, 2649sets its handle as the value of \verb|_OUTPUT|,
2648and returns this value. 2650and returns this value.
2651An optional \verb|mode| argument with the string \verb|"binary"|
2652opens file in binary mode (where this applies).
2649It does not close the current output file. 2653It does not close the current output file.
2650Note that, if the file already exists, 2654Note that, if the file already exists,
2651then it will be \emph{completely erased} with this operation. 2655then it will be \emph{completely erased} with this operation.
@@ -2667,10 +2671,12 @@ the number of files that can be open at the same time is
2667usually limited and depends on the system. 2671usually limited and depends on the system.
2668\end{quotation} 2672\end{quotation}
2669 2673
2670\subsubsection*{\ff \T{appendto (filename)}}\Deffunc{appendto} 2674\subsubsection*{\ff \T{appendto (filename [, mode])}}\Deffunc{appendto}
2671 2675
2672Opens a file named \verb|filename| and sets it as the 2676Opens a file named \verb|filename| and sets it as the
2673value of \verb|_OUTPUT|. 2677value of \verb|_OUTPUT|.
2678An optional \verb|mode| argument with the string \verb|"binary"|
2679opens file in binary mode (where this applies).
2674Unlike the \verb|writeto| operation, 2680Unlike the \verb|writeto| operation,
2675this function does not erase any previous content of the file. 2681this function does not erase any previous content of the file.
2676If this function fails, it returns \nil, 2682If this function fails, it returns \nil,