A text file is a straight text file, with non-structured data.
Text file can be like
To read it we use the open() function given a path and a method (here read by default).
Here you are, you can now work with text data !
If you want to know how to write a text file, I also wrote an article to show you how we can do it the simplest way.