User:Simon/Trim4/tools/Python read file

From XPUB & Lens-Based wiki

Reading files

For Python to read a file:

with open('README.md', 'r') as txt: 

    txt_content = txt.read() 


print(txt_content)