| version 1.12, 2003/11/01 23:58:44 |
version 1.16, 2008/07/17 15:01:10 |
|
|
| @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/io.texi,v 1.11 2003/04/20 08:01:28 noro Exp $ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/io.texi,v 1.15 2003/12/20 13:38:04 ohara Exp $ |
| \BJP |
\BJP |
| @node $BF~=PNO(B,,, $BAH$_9~$_H!?t(B |
@node $BF~=PNO(B,,, $BAH$_9~$_H!?t(B |
| @section $BF~=PNO(B |
@section $BF~=PNO(B |
|
|
| * bsave bload:: |
* bsave bload:: |
| * bload27:: |
* bload27:: |
| * print:: |
* print:: |
| |
* access:: |
| |
* remove_file:: |
| * open_file close_file get_line get_byte put_byte purge_stdin:: |
* open_file close_file get_line get_byte put_byte purge_stdin:: |
| @end menu |
@end menu |
| |
|
| Line 492 On Windows one has to use @samp{/} as the separator of |
|
| Line 494 On Windows one has to use @samp{/} as the separator of |
|
| @var{obj} $B$rI>2A$7$FI=<($9$k(B. |
@var{obj} $B$rI>2A$7$FI=<($9$k(B. |
| @item |
@item |
| $BBh(B 2 $B0z?t$,$J$$$+(B, $B$^$?$O(B 0, 2 $B0J30$N>l9g(B, $B2~9T$9$k(B. |
$BBh(B 2 $B0z?t$,$J$$$+(B, $B$^$?$O(B 0, 2 $B0J30$N>l9g(B, $B2~9T$9$k(B. |
| $BBh(B 2 $B0z?t$,(B 1 $B$N>l9g(B, $B2~9T$;$:(B, $B=PNO$O%P%C%U%!$K=q$-9~$^$l(B, |
$BBh(B 2 $B0z?t$,(B 0 $B$N>l9g(B, $B2~9T$;$:(B, $B=PNO$O%P%C%U%!$K=q$-9~$^$l(B, |
| $B%P%C%U%!$O%U%i%C%7%e$5$l$J$$(B. |
$B%P%C%U%!$O%U%i%C%7%e$5$l$J$$(B. |
| $BBh(B 2 $B0z?t$,(B 2 $B$N>l9g(B, $B2~9T$7$J$$$,%P%C%U%!$O%U%i%C%7%e$5$l$k(B. |
$BBh(B 2 $B0z?t$,(B 2 $B$N>l9g(B, $B2~9T$7$J$$$,%P%C%U%!$O%U%i%C%7%e$5$l$k(B. |
| @item |
@item |
|
|
| xyz123gahaha |
xyz123gahaha |
| @end example |
@end example |
| |
|
| |
\JP @node access,,, $BF~=PNO(B |
| |
\EG @node access,,, Inputs and Outputs |
| |
@subsection @code{access} |
| |
@findex access |
| |
|
| |
@table @t |
| |
@item access(@var{file}) |
| |
\JP :: @var{file} $B$NB8:_$r%F%9%H$9$k(B. |
| |
\EG :: testing an existence of @var{file}. |
| |
@end table |
| |
|
| |
@table @var |
| |
@item return |
| |
(1|0) |
| |
@item file |
| |
\JP $B%U%!%$%kL>(B |
| |
\EG filename |
| |
@end table |
| |
|
| |
@itemize @bullet |
| |
\BJP |
| |
@item |
| |
@var{file} $B$,B8:_$9$l$P(B 1, $BB8:_$7$J$1$l$P(B 0 $B$rJV$9(B. |
| |
\E |
| |
@end itemize |
| |
|
| |
\JP @node remove_file,,, $BF~=PNO(B |
| |
\EG @node remove_file,,, Inputs and Outputs |
| |
@subsection @code{remove_file} |
| |
@findex remove_file |
| |
|
| |
@table @t |
| |
@item remove_file(@var{file}) |
| |
\JP :: @var{file} $B$r>C5n$9$k(B. |
| |
\EG :: Delete an file @var{file}. |
| |
@end table |
| |
|
| |
@table @var |
| |
@item return |
| |
1 |
| |
@item file |
| |
\JP $B%U%!%$%kL>(B |
| |
\EG filename |
| |
@end table |
| |
|
| \JP @node open_file close_file get_line get_byte put_byte purge_stdin,,, $BF~=PNO(B |
\JP @node open_file close_file get_line get_byte put_byte purge_stdin,,, $BF~=PNO(B |
| \EG @node open_file close_file get_line get_byte put_byte purge_stdin,,, Inputs and Outputs |
\EG @node open_file close_file get_line get_byte put_byte purge_stdin,,, Inputs and Outputs |
| @subsection @code{open_file}, @code{close_file}, @code{get_line}, @code{get_byte}, @code{put_byte}, @code{purge_stdin} |
@subsection @code{open_file}, @code{close_file}, @code{get_line}, @code{get_byte}, @code{put_byte}, @code{purge_stdin} |
|
|
| @item put_byte(@var{num},@var{c}) |
@item put_byte(@var{num},@var{c}) |
| \JP :: $B<1JL;R(B @var{num} $B$N%U%!%$%k$K(B 1 $B%P%$%H(B @var{c} $B$r=q$/(B. |
\JP :: $B<1JL;R(B @var{num} $B$N%U%!%$%k$K(B 1 $B%P%$%H(B @var{c} $B$r=q$/(B. |
| \EG :: Writes a byte @var{c} to the file indicated by a descriptor @var{num}. |
\EG :: Writes a byte @var{c} to the file indicated by a descriptor @var{num}. |
| @item purge_stdin() |
|
| @item purge_stdin() |
@item purge_stdin() |
| \JP :: $BI8=`F~NO$N%P%C%U%!$r%/%j%"$9$k(B. |
\JP :: $BI8=`F~NO$N%P%C%U%!$r%/%j%"$9$k(B. |
| \EG :: Clears the buffer for the standard input. |
\EG :: Clears the buffer for the standard input. |