| |||||||||||
get_line(-result)get_line(+stream, -result)get_line/1/2 行を1行読み込みます。ファイルの終了時には失敗します。 引数result atom stream atom
例ファイルをコピーします。minerva -l copyfile aaa.txt bbb.txtで呼び出してください。main([Infile,Outfile|_]) :- open(Infile,read,Instream), open(Outfile,write,Outstream), copy(Instream,Outstream), close(Instream), close(Outstream).
標準
この述語は、ISO-Prolog標準に含まれない。
See alsoregular expression, match/2/3, match_all/3, substitute/4, substitute_all/4, split/2/3, chop/2, get_line/1/2, | |||||||||||
| |||||||||||
| 戻る> |
|