How to create .txt text file reading TinyDB data?

How to create a .txt text file reading TinyDB data?
Or how to export TinyDB data to text?

example.
label: 123456
value: 20

label: 789456135
value: 35

label: 3312
value: 15

Text file
""""23456 20
789456135 35
""""""3312 15

instead of " inserting spaces

Thanks!

Comma Separated Values (CSV) text is more universally accepted
if you want to import to a spreadsheet.

I need to generate in text

Something like this ?

image

better....

this option worked, but it is very slow.
has 2k codes registered and it takes a long time to generate the file. thank you anyway

Here an old extension, TinyDBX to save a Tiny db in a file.

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