:- use_module(library(edit)).(can be autoloaded)
.plfile from the commandline (the associated file, see the Prolog flag associated_file or the first script file specified using the -s or -l command line option. When using the Windows shell while SWI-Prolog is associated with the
.plextension this is the file loaded by double-clicking a
.plfile. See also section 18.104.22.168.