How to create .txt text file reading TinyDB data?

A post was split to a new topic: How to read from a txt file