Prolog .. Can i convert from a list of chars to a string or term in Prolog !!
Posted
by
AhmadAssaf
on Stack Overflow
See other posts from Stack Overflow
or by AhmadAssaf
Published on 2010-12-31T05:21:05Z
Indexed on
2010/12/31
9:53 UTC
Read the original article
Hit count: 234
i use
read_line_to_codes(Stream,Line)
to read a line from a file .. first is there any way to read a line and assign it to a term in prolog ?? if not i managed to read a line and put it in this char list .. now this char list contains spaces .. which is bad .. so i want to convert it to a term or a string in prolog so that i can process it easier .. spaces cannot be atoms so thats a problem ..
i appreciate the help !!
© Stack Overflow or respective owner