From emav@aegean.gr Fri Apr  6 22:22:49 2001
Received: from eupalinos.samos.aegean.gr (eupalinos.aegean.gr [195.251.160.12])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f36KMm320587
	for <prolog@swi.psy.uva.nl>; Fri, 6 Apr 2001 22:22:49 +0200 (MET DST)
Received: by eupalinos.aegean.gr with Internet Mail Service (5.5.2653.19)
	id <2MH5DYN4>; Fri, 6 Apr 2001 23:21:49 +0300
Message-ID: <81FBBA8C21B9D311A6E500508B6144AA02B187@eupalinos.aegean.gr>
From: Kourakos-Mavromichalis Evagelos <emav@aegean.gr>
To: "'prolog@swi.psy.uva.nl'" <prolog@swi.psy.uva.nl>
Date: Fri, 6 Apr 2001 23:21:48 +0300 
Return-Receipt-To: Kourakos-Mavromichalis Evagelos <emav@aegean.gr>
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: [SWIPL] Converting terms to strings

Hello,
I'd like to know if it's possible to convert a term like:
box(red,'is red')
to a list:
[ A1, A2,..., A17 ]
where Ax are the ASCII values of chars of the term.

I think that the only build in predicate that achieves this is the 
string_to_list( ?String, ?List ). 
but how we convert the box(red,'is red') to a string?

Also, is it possible to write such terms that contains strings to text
files?

Thanks in advance,
Vangelis Mavromichalis
PhD Student

