From Lesta@t-online.de Sat Feb  3 11:47:49 2001
Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f13AlnZ00710
	for <prolog@swi.psy.uva.nl>; Sat, 3 Feb 2001 11:47:49 +0100 (MET)
Received: from fwd06.sul.t-online.com 
	by mailout04.sul.t-online.com with smtp 
	id 14P0D3-0003Pk-01; Sat, 03 Feb 2001 11:46:25 +0100
Received: from t-online.de (05121269112-0001@[62.158.100.206]) by fwd06.sul.t-online.com
	with esmtp id 14P0Cq-02t0q0C; Sat, 3 Feb 2001 11:46:12 +0100
Message-ID: <3A7BE17B.80353110@t-online.de>
Date: Sat, 03 Feb 2001 11:46:19 +0100
From: Lesta@t-online.de (Uwe Lesta)
Organization: Lesta
X-Mailer: Mozilla 4.7 [de]C-DT  (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: =?iso-8859-1?Q?=B6=E3=E3=E5=EB=EF=F2=20=C3=E5=F9=F1=E3=E1=EA=FC=F0=EF=F5=EB=EF=F2?= 
	<ageorg@softlab.ntua.gr>,
   swi prolog mailing list 
	<prolog@swi.psy.uva.nl>
Subject: Re: [SWIPL] Question about write/1
References: <3A795348.FCE887DE@softlab.ntua.gr>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Sender: 05121269112-0001@t-dialin.net



"Άγγελος Γεωργακόπουλος" 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
Lesta@t-online.de

