Reading and writing of .txt files

--Originally published at Python & pugs

This is a very easy topic, we only need 2 things, a file .txt, and to know the “modes” in which you can open/use the file.

These are the ways in which you can use the .txt files:

“r” = To read

“w” = For writing

“a” = For appending

Knowing now this, in your program you’ll just need to write it in this way:

yeahfucker