[Groovy]Parse properties file in Groovy def props = new Properties() new File("foo.properties").withInputStream { s -> props.load(s) }println props