title: Making variables persistent after a restart on NodeMCU
body: <p>I'm making a smart home system using nodeMCU, and I need to store and retrieve data from the module. I used the following function.</p>
  
  <pre><code>function save_settings(name,value)
    file.remove(name)
    file.open(name,"w+")
    file.writeline(value)
    file.close()
  end
  </code></pre>
  
  <p>It works but it's slow and the NodeMCU crashes if I trigger the above function rapidly... Sometimes requiring a FS format to be able to use it again.</p>
  
  <p>So my question is: is there any other way to make variables persistent between restarts?</p>