Subject: Re: [SWIPL] Question about write/1

From: [email-masked] (Uwe Lesta)
Date: Sat, 03 Feb 2001 11:46:19 +0100

"¶ããåëïò Ãåùñãáêüðïõëïò" schrieb:
> 
> I would like to ask you how I can use the write/1 (or any other)
> predicate to print a complex phrase that contains both text and
> variables.

use writef/2 instead of write/1

out(X):-
	writef('output : %w\n', [X]).

see also format/1 and format/2 in the section

	3.35 Formatted Write

of the user manual.

-- 

Regards

Uwe
[email-masked]