I have text file in D drive named "data.txt". It have several columns and rows like
A B A B V B
B V A B A A
B B A A B A
I want to read it and then convert it to say A=1, B=2, V=3 and then write it so that it will be a array of number. how to do that?