Data analysis program

I am making a data master program. I want to print the data that matches the data in my *.txt file in the program. But how can I include *.txt data in the program while designing the program?