Subject: [SWIPL] Converting terms to strings

From: Kourakos-Mavromichalis Evagelos <[email-masked]>
Date: Fri, 6 Apr 2001 23:21:48 +0300

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