User talk:Simon/Machine reading: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "150px|thumb|Illustration of an RFID tag {{User:Simon/My mother was a computer notes}} Category: Library Snippets")
 
No edit summary
Line 1: Line 1:
[[File:RFID tag.jpeg|150px|thumb|Illustration of an RFID tag]]
[[File:RFID tag.jpeg|150px|thumb|Illustration of an RFID tag]]
{{User:Simon/My mother was a computer notes}}
{{User:Simon/Trim4/tools/Python_read_file}}


[[Category: Library Snippets]]
[[Category: Library Snippets]]

Revision as of 19:15, 11 June 2020

Illustration of an RFID tag

Reading files

For Python to read a file:

with open('README.md', 'r') as txt:
    txt_content = txt.read() 
print(txt_content)