From emav@aegean.gr Sat Apr  7 09:46:15 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 f377kE325059
	for <prolog@swi.psy.uva.nl>; Sat, 7 Apr 2001 09:46:15 +0200 (MET DST)
Received: by eupalinos.aegean.gr with Internet Mail Service (5.5.2653.19)
	id <2MH5DY4T>; Sat, 7 Apr 2001 10:45:15 +0300
Message-ID: <81FBBA8C21B9D311A6E500508B6144AA02B188@eupalinos.aegean.gr>
From: Kourakos-Mavromichalis Evagelos <emav@aegean.gr>
To: "'prolog@swi.psy.uva.nl'" <prolog@swi.psy.uva.nl>
Subject: RE: [SWIPL] Converting terms to strings
Date: Sat, 7 Apr 2001 10:45:14 +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"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.psy.uva.nl id f377kE325059

The name(?AtomOrInt, ?String) takes as input atoms or integers and returns
ASCII lists. I need a predicate that takes as input terms (that contains
strings as arguments) and returns ASCII lists.

> -----Original Message-----
> From: Jacinto A. Davila [mailto:jacinto@ing.ula.ve]
> Sent: Saturday, April 07, 2001 12:45 AM
> To: Kourakos-Mavromichalis Evagelos
> Subject: Re: [SWIPL] Converting terms to strings
> 
> 
> 
> Try name(red, ListofAscii).
> 
> Jacinto A. Dávila (http://cesimo.ing.ula.ve/~jacinto/)
> Coordinador del Postgrado en Modelado y Simulación (cesimo.ing.ula.ve)
> Coordinador del Laboratorio de Computación Avanzada, Multimedia y
> Video-Conferencia (pgvirtual.pg.ing.ula.ve/labcamv/). 
> Universidad de Los Andes (www.ula.ve) 
> 
> On Fri, 6 Apr 2001, Kourakos-Mavromichalis Evagelos wrote:
> 
> > 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
> > 
> > 
> > ----------------
> > * To UNSUBSCRIBE, please use the HTML form at
> > 
> >     
> http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist
> > 
> > or send mail to prolog-request@swi.psy.uva.nl using the 
> Subject: "unsubscribe"
> > (without the quotes) and *no* message body.
> > 
> > ** An ARCHIVE of this list is maintained at
> > 
> >     
> http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/
> > 
> 

