ファイルを読み取って入力を処理し、別のファイルに書き込もうとしているときに、このエラーが発生しました。
ERROR: read_util:read_line_to_codes/2: <stream> Number does not exist
ここで、Numberはストリームの数(例:04068B20))であり、毎回変更されます。
read_File(Stream,[H|T],LineNumber):-
read_line_to_codes(Stream, H),
(H \= end_of_file -> /*open other file and write in it*/).