Using app.open_resource('foobar.txt', 'w') generates the error Resources can only be opened for reading in flask.
Is there a way to open a resource to write to it?
If not, can you get the path of the resource using flask and then I can open it manually and write to it.
This should work:
This is more convenient: