title: Save and Load .bat game
body: <p>I'm making a text game written in bat, and the game has been done, (or more, a good part of it, such as the commands, and at the stage where you can play it); however, I want to add the power to save your game, and load it again.</p>
  
  <p>I think one could do this by having the .bat file write the variables which need to be saved (such as the item variables); however, I don't know how to do this. Any help would be appreciated, thanks.</p>
  
  <p>I should have said, I can make it load, by use of:</p>
  
  <pre><code> for /f "delims=" %%x in (config.txt) do (set "%%x")
  </code></pre>
  
  <p>However, I don't know how to make the .bat write to the file and so "save".</p>