title: Read and Writing Files Dropbox API V2
body: <p>I am try to read and write to a file on my Dropbox using the new Drobox API, I have already created a variable that can access my account and have been able to list the contents of my Dropbox, but so far I have not been able to get a specific files contents. What I recieve in the console output is, </p>
  
  <p>todocl.file - The file path, which is 'Test.txt' (I have tried '/Test.txt', that just gives a 409 error, path not found.)</p>
  
  <p>and</p>
  
  <p>Dropbox-sdk.min.js:8 Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'blob').</p>
  
  <pre><code>function readFiles() {
      todocl.dbx.filesDownload({
          path: '/Help.txt'
      }).then(function (response) {
          var text = response.fileBlob;
          var reader = new FileEventListener("loadend", function () {
              console.log(reader.result);
          });
          reader.readAsText(text);
      }).catch(function (error) {
          console.error(error);
      });
  }
  </code></pre>
  
  <p>Dropbox Api
  <a href="http://dropbox.github.io/dropbox-sdk-js/Dropbox.html" rel="nofollow noreferrer">http://dropbox.github.io/dropbox-sdk-js/Dropbox.html</a></p>
  
  <p>Any help would be great!</p>