title: Write/Read Small File
body: <p>I want to save the "state" of my application each time it is changed, and load it each time the application is booted up.<br>
  The "state" will be a simple object with a handful of variables in it, the idea is to <code>JSON.stringify</code> it to a file, and <code>JSON.parse</code> it when needed.</p>
  
  <p>From what I understand, this cannot be done using Node's <code>fs</code>, since files on Heroku are not permanent.<br>
  I cannot use S3 either, because it's not free (free plan only lasts a year), and this is a hobby project of mine - I am not willing to pay for it.<br>
  Another recurring suggestion, is to use some sort of a database, but I think that is a waste of time, since I will only be dealing with one very small file.</p>
  
  <p>Essentially, my question is, how can I achieve something that is closest to this?:</p>
  
  <pre><code>WRITE("filename.txt",JSON.stringify(x));
  x=JSON.parse(READ("filename.txt"));
  </code></pre>
  
  <p>(P.S: I've read somewhere, can't seem to remember where, that Heroku gives free 100MB (Which would be way more than enough). What is that? Does it have anything to do with my code?)</p>