HTML and CSS Reference
Figure 3.7. After the user clicks the Choose Files button, a dialog window pops up.
3.3.5. Saving files using the File Writer API
The final part of the filesystem functionality you need to add to the application is saving
files in the File Editor view using the File Writer API. You've already seen the File Writer
API in action; in the previous section when importing files from the user's computer, you
used the File Writer API to save the contents of existing files into the newly created files in
the application's filesystem. Now you'll use a similar approach to implement the Save and
Preview buttons in the File Editor view of the application.