title: Reading and writing an INI file
body: <p>I have been toying with the below script to be able to read settings for use with my HTA (creating a game launcher).</p>
  
  <p>Here is my current HTA:</p>
  
  <p><a href="http://pastebin.com/skTgqs5X" rel="nofollow">http://pastebin.com/skTgqs5X</a></p>
  
  <p>It doesn't quite work, it complains of the <code>WScript</code> object being required. While I understand <code>Echo</code> will not work like that in a HTA I am having trouble modifying the code so it will work. Even just removing all <code>Echo</code> references it still has an issue with <code>objOrgIni</code> on line 200 of the below code (with the <code>WScript</code> references removed):</p>
  
  <p><a href="http://pastebin.com/pGjv4Gh1" rel="nofollow">http://pastebin.com/pGjv4Gh1</a></p>
  
  <p>I don't even need that level of error checking as the INI will exist etc, I just need a simple way to read from and write to an INI in my scripting. Any help you guys can give me in achieving that would be great, it's a little advanced for me just yet, but I'd love an explanation as to why it fails.</p>