title: How to create a named file in a chrome app
body: <p>Searching for an example of how to create a local file in chrome as well as read it back, the only link in the docs really is: <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/filesystem-access" rel="nofollow noreferrer">https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/filesystem-access</a></p>
  
  <p>Here is the link to the docs for chrome.FileSystem: <a href="https://developer.chrome.com/apps/fileSystem" rel="nofollow noreferrer">https://developer.chrome.com/apps/fileSystem</a></p>
  
  <p>conspicuously absent is how to create a file.</p>
  
  <p>The function getWriteableEntry seems to create a new entry but requires one.  How do you get in effect the root directory of the google chrome area?</p>
  
  <pre><code>chrome.fileSystem.getWritableEntry(Entry entry, function callback)
  </code></pre>
  
  <p>I would like a pointer to an example showing how to write a string to a file in local storage, and how to read that back in.</p>
  
  <p>Is it really something that requires user input?  I thought that was no longer true with a chrome extension: <a href="https://stackoverflow.com/questions/29787301/saving-files-in-a-chrome-app">Saving files in a Chrome App</a></p>