What differences are there in using a .txt and .bat file in python?

-2

I'm looking for practical and simple ways to save information in a separate file, which even after the program closes.py (In python) the information is not lost. And therein was a question, what are the advantages of using a .txt and .bat file type for storing and / or reading information? Is there a difference?

    
asked by anonymous 22.06.2018 / 22:14

1 answer

1

There is not much difference, I would say.

Especially in this context of, as I understand it, create a log for your python code. Is that right?

In any case, in essence, the file would not even need to have an extension, since it is only for unformatted text.

Of course, if it's a log for some other purpose, perhaps a more familiar extension will have more practicality, but in summary: whatever.

    
22.06.2018 / 23:37