User talk:Simon/Machine reading: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
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/Trim4/tools/Python_read_file]]
{{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)