Discussion:
consult can't find file
(too old to reply)
e***@yahoo.com
2005-11-22 19:44:42 UTC
Permalink
I'm new in prolog ... trying to use [fam]. to load fam.pl, but got an
error:
ERROR: source_sink `fam' does not exist

may be I'm in the wrong directory, but don't know how to change it
can anyone please tell me?
Pierpaolo BERNARDI
2005-11-23 03:04:11 UTC
Permalink
Post by e***@yahoo.com
I'm new in prolog ... trying to use [fam]. to load fam.pl, but got an
ERROR: source_sink `fam' does not exist
may be I'm in the wrong directory, but don't know how to change it
can anyone please tell me?
You don't say which prolog you are using.

Anyway, try including the path, like this: ['put/the/path/here/fam'].

P.
Jan Wielemaker
2005-11-23 10:20:39 UTC
Permalink
Post by Pierpaolo BERNARDI
Post by e***@yahoo.com
I'm new in prolog ... trying to use [fam]. to load fam.pl, but got an
ERROR: source_sink `fam' does not exist
may be I'm in the wrong directory, but don't know how to change it
can anyone please tell me?
You don't say which prolog you are using.
Neither with operating system and what he did. From the error message,
it is probably SWI-Prolog and as it is mostly Windows users that cannot
find files it is likely Windows :-)

On a properly installed system, simply double click the .pl file. If
you want to know the working directory, use the command ?- pwd. There
is a small readme that comes with the SWI-Prolog version for Windows
that explains some of these issues.

--- Jan
Post by Pierpaolo BERNARDI
Anyway, try including the path, like this: ['put/the/path/here/fam'].
That should help too :-)

--- Jan
Karl Klose
2005-11-23 13:10:49 UTC
Permalink
Post by e***@yahoo.com
I'm new in prolog ... trying to use [fam]. to load fam.pl, but got an
ERROR: source_sink `fam' does not exist
may be I'm in the wrong directory, but don't know how to change it
can anyone please tell me?
Try ['fam.pl'].

Continue reading on narkive:
Loading...