title: How to read a properties file in java in the original order
body: <p>I need to read a properties file and generate a <em>Properties</em> class in Java. I do so by using:</p>
  
  <pre><code>Properties props = new Properties();
  props.load(new FileInputStream(args[0]));
  for (Enumeration e = props.propertyNames(); e.hasMoreElements();) {
  }
  </code></pre>
  
  <p>However, the properties returned by props.propertyName is not in the order of the original properties file. I understand that <em>Properties</em> are just old fashioned, non-generified Hashtables. I'm looking for a work around. Any idea? Thank you!</p>