Load text from .txt and show line for line - possible?

Hey and happy christmas!
I’m working on a demo for my brother, who want’s to do kind of a VR-Reading thing and therefore I’d need to load the text from the .pdf/.txt and show it line for line. Everytime you clck/a specific event happens, the text should move forward/show the next line. So kind of an old dialogue style (like the Pokemon dialogue boxes) but with loading the text from a pdf/txt, because If you use a book as source, it would be hard to put every line in an extra box to display, so it would be awesome if it’d be possible to get the text from a file.

Thank’s a lot in advance!
Happy holidays! -