package com.egtry;
public class EGProperty {
public static void main(String[] args) {
InputStream in=EGProperty.class.getResourceAsStream("egtry.properties");
Properties prop=new Properties();
try {
prop.load(in);
} catch (Exception e) {
}
System.out.println("name1="+prop.getProperty("name1");
//value1
}
}
#comment name1=value1