开发者

Writing to a binary file in PROLOG

开发者 https://www.devze.com 2023-01-22 21:17 出处:网络
I know how to write to ordinary files, but I haven\'t found any resources on the web about binary files in Prolog.

I know how to write to ordinary files, but I haven't found any resources on the web about binary files in Prolog.

I'm us开发者_如何学JAVAing Turbo Prolog.


ISO Prolog has binary I/O.
Just Google: "ISO Prolog Standard" for anything about ISO Prolog.

Here is an I/O reference for SWI-Prolog, free, ISO.

Turbo Prolog is hard to find documentation for. If you look at Example 64 that ships with it, you'll find a way to call C from Prolog. That'll get you binary I/O for sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消