diff options
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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, | |||
2615 | all I/O functions return \nil\ on failure and | 2615 | all I/O functions return \nil\ on failure and |
2616 | some value different from \nil\ on success. | 2616 | some 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 | ||
2620 | This function may be called in two ways. | 2620 | This function may be called in two ways. |
2621 | When called with a file name, it opens the named file, | 2621 | When called with a file name, it opens the named file, |
2622 | sets its handle as the value of \verb|_INPUT|, | 2622 | sets its handle as the value of \verb|_INPUT|, |
2623 | and returns this value. | 2623 | and returns this value. |
2624 | An optional \verb|mode| argument with the string \verb|"binary"| | ||
2625 | opens file in binary mode (where this applies). | ||
2624 | It does not close the current input file. | 2626 | It does not close the current input file. |
2625 | When called without parameters, | 2627 | When called without parameters, |
2626 | it closes the \verb|_INPUT| file, | 2628 | it closes the \verb|_INPUT| file, |
@@ -2639,13 +2641,15 @@ the number of files that can be open at the same time is | |||
2639 | usually limited and depends on the system. | 2641 | usually 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 | ||
2644 | This function may be called in two ways. | 2646 | This function may be called in two ways. |
2645 | When called with a file name, | 2647 | When called with a file name, |
2646 | it opens the named file, | 2648 | it opens the named file, |
2647 | sets its handle as the value of \verb|_OUTPUT|, | 2649 | sets its handle as the value of \verb|_OUTPUT|, |
2648 | and returns this value. | 2650 | and returns this value. |
2651 | An optional \verb|mode| argument with the string \verb|"binary"| | ||
2652 | opens file in binary mode (where this applies). | ||
2649 | It does not close the current output file. | 2653 | It does not close the current output file. |
2650 | Note that, if the file already exists, | 2654 | Note that, if the file already exists, |
2651 | then it will be \emph{completely erased} with this operation. | 2655 | then 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 | |||
2667 | usually limited and depends on the system. | 2671 | usually 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 | ||
2672 | Opens a file named \verb|filename| and sets it as the | 2676 | Opens a file named \verb|filename| and sets it as the |
2673 | value of \verb|_OUTPUT|. | 2677 | value of \verb|_OUTPUT|. |
2678 | An optional \verb|mode| argument with the string \verb|"binary"| | ||
2679 | opens file in binary mode (where this applies). | ||
2674 | Unlike the \verb|writeto| operation, | 2680 | Unlike the \verb|writeto| operation, |
2675 | this function does not erase any previous content of the file. | 2681 | this function does not erase any previous content of the file. |
2676 | If this function fails, it returns \nil, | 2682 | If this function fails, it returns \nil, |