reading data from file

i have created a text file, which is my sort of like my database of player names. it has 2 columns.first for the name and second for what type of player he is.
now i want to read the data from that file and display the name using text actor.plz if any one knows how to do it, help us?
now i want to read the data from that file and display the name using text actor.plz if any one knows how to do it, help us?