public final class Open extends AbstractSingleResultPredicate
open(X,Y,Z)
- opens a file.
X
is an atom representing the name of the file to open. Y
is an atom that should have
either the value read
to open the file for reading from or write
to open the file for
writing to. Z
is instantiated by open
to a special term that must be referred to in
subsequent commands in order to access the stream.
Constructor and Description |
---|
Open() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term fileNameAtom,
Term operationAtom,
Term variableToAssignTo) |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAlwaysCutOnBacktrack
protected boolean evaluate(Term fileNameAtom, Term operationAtom, Term variableToAssignTo)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.