title: Reading/Writing to a file in javascript
body: <p>I want to read and write to a file in a specific way.</p>
  
  <p>An example file could be:</p>
  
  <pre><code>name1:100
  
  name2:400
  
  name3:7865786
  
  ...etc etc
  </code></pre>
  
  <p>What would be the best way to read this data in and store in, and eventually write it out?
  I don't know which type of data structure to use? I'm still fairly new to javascript.</p>
  
  <p>I want to be able to determine if any key,values are matching.
  For example, if I were to add to the file, I could see that name1 is already in the file, and I just edit the value instead of adding a duplicate.</p>