How to read a properties file in java in the original order
I need to read a properties file and generate a *Properties* class in Java. I do so by using:

    Properties props = new Properties();
    props.load(new FileInputStream(args[0]));
    for (Enumeration e = props.propertyNames(); e.hasMoreElements();) {
    }
    

However, the properties returned by props.propertyName is not in the order of the original properties file. I understand that *Properties* are just old fashioned, non-generified Hashtables. I'm looking for a work around. Any idea? Thank you!
How to read a properties file in java in the original order
===

I need to read a properties file and generate a *Properties* class in Java. I do so by using:

    Properties props = new Properties();
    props.load(new FileInputStream(args[0]));
    for (Enumeration e = props.propertyNames(); e.hasMoreElements();) {
    }
    

However, the properties returned by props.propertyName is not in the order of the original properties file. I understand that *Properties* are just old fashioned, non-generified Hashtables. I'm looking for a work around. Any idea? Thank you!