IF Computer > MINERVA > Manual > Reference > Restrictions > Bugs > Byte input/output

Byte input/output

MINERVA
ifcomputer logo
f
Expert Services on the Web

Resolved in MINERVA 2.0. See ReleaseNotes.

get_byte/1/2, put_byte/1/2, peek_byte/1/2 are not available.

As workaround open the stream as ascii stream and use put_char/1/1, put_byte/1/2, peek_byte/1/2, converting characters to codes.

Example:

my_put_byte(Stream,Code) :-
	char_code(Char,Code), put_char(Stream,Char).

use_binary_stream :- : open(BinaryFile,write,FakedBinaryStream,[encoding(ascii)]), : my_put_byte(FakedBinaryStream,99), : flush_output(FakedBinaryStream), close(FakedBinaryStream), :

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Restrictions/Bugs/byte_io/print_de.html
published 2008/10/6 update 1999/4/26 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS