Re: Reading a line of text in Prolog



Stephan Lukits schrieb:
The code:

is_eof(FlHndl, CharCode, CurrentLine, FileAkku, FileContent) :-
CharCode == -1,
append(FileAkku, [CurrentLine], FileContent),
close(FlHndl)., !
^^^sorry, typos. Please remove this.

Best regards
Stephan

.