Writing to a binary file 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.
精彩评论