Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以前にconsultを介してロードされ、次にassertを介して追加されたファクトをファイルに保存する、 Turboの保存機能のSWIの類似物はありますか?
マニュアルに保存のような機能は見つかりませんでした。次の交換を試してみてください。
% Save whole DB into file save(FileName) :- open(FileName, update, F), with_output_to(S, listing), close(F).
またはさらに短い:
save(FileName) :- tell(FileName), listing, told.