Files #

Last updated March 17, 2026
circuitpython

Load JSON from disk

config = json.load(open("config.json",'rb'))
print(config['foo']['bar'])

read text file to string

with open("./blog.html", "r") as txt:
    html = txt.read()