Files #
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()
config = json.load(open("config.json",'rb'))
print(config['foo']['bar'])
with open("./blog.html", "r") as txt:
html = txt.read()