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
 
(2 intermediate revisions by the same user not shown)
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]]

Latest revision as of 14:40, 20 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)