当我尝试读取文件并对输入进行一些处理并将其写入另一个文件时,我遇到了这个错误,
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*/).
答案 0 :(得分:2)
您的信息流不存在。你能以某种方式关闭流和/或移动/删除文件吗?