summaryrefslogtreecommitdiff
path: root/stdlib.pl
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-02 22:01:59 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-02 22:01:59 +0000
commitd81447526cde6fa98dfa792a65f71acb78ef1398 (patch)
treed04e078d3aed000f6691b45262062136ae41931d /stdlib.pl
parent8dd4f85c85aa9ab7a5f1219efd694e6707f2718c (diff)
Start work on input/output streams
Diffstat (limited to 'stdlib.pl')
-rw-r--r--stdlib.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdlib.pl b/stdlib.pl
index 7c9d189..4973c3e 100644
--- a/stdlib.pl
+++ b/stdlib.pl
@@ -69,6 +69,14 @@ member(X, [X|_]).
member(X, [_|Tail]) :-
member(X, Tail).
+% Input output
+
+open(SourceSink, Mode, Stream) :-
+ open(SourceSink, Mode, Stream, []).
+
+close(StreamOrAlias) :-
+ close(StreamOrAlias, []).
+
% Standard exceptions
instantiation_error :-