I am trying to write a program in prolog but am stuck on how to go on about doing this step.
I have a file (i.e test.txt), which has numbers in it like:
492255345
234523668
234653547
etc.. and I am interested in unifying each character (number) to a variable I have already assigned a rule in a list.
for example
list(1, [Q,W,E,R,T,Y,U..]).
list(2, [Z,X,C,V,B,N,M..]).
in this example, I am trying to write a code to assign 4 to Q, W to 9, etc..
and the 2nd row to assign Z to 2, X to 3, etc..
thnx for the help, and sorry for my bad english.
I have a file (i.e test.txt), which has numbers in it like:
492255345
234523668
234653547
etc.. and I am interested in unifying each character (number) to a variable I have already assigned a rule in a list.
for example
list(1, [Q,W,E,R,T,Y,U..]).
list(2, [Z,X,C,V,B,N,M..]).
in this example, I am trying to write a code to assign 4 to Q, W to 9, etc..
and the 2nd row to assign Z to 2, X to 3, etc..
thnx for the help, and sorry for my bad english.