Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help!getting word in a text file as value of a term

Status
Not open for further replies.

graced

Programmer
Jan 7, 2004
1
PH
is it possible to get a word from a text file and insert that word as a value of a variable?
e.g. text file contains the nina
the prolog program will assign "nina" as a value of the variable 'Name'. thus the predicate

person(Name)

is the same as

person(nina)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top