A demo of how to edit a file in place using the File System Access API.
At a quick glance, it doesn't seem to be available in Firefox or WebKit, just Chromium browsers.