sitelogo
set_input/1

現在入力ストリームを設定する。

set_input(+ストリーム)

set_input は、現在入力ストリームを ストリームに設定する。 この述語の呼び出し以降、このストリームは、 明示的なストリームの指定のない入力述語によって利用される。

引数

ストリーム                 入力ストリーム

次の例は、ファイル 'test.data' を開け、 現在入力ストリームをこのストリームに設定する。

?- open('test.data', read, Stream), set_input(Stream).

標準

この述語は、ISO-Prolog 標準である。

関連

at_end_of_stream/0/1, close/1/2, current_error/1, current_input/1, current_output/1, flush_output/0/1, open/3/4, set_error/1, set_output/1.


戻る 続く..
冒頭へ managed with ubiCMS