How to call on a TXT file?

Ok I’m working on my python programing and I need to know how to call a txt file and be able to gather data from it. You some one help me with this. And maybe give me an example code?

This should cover what you’re after.