// 读取一般的属性文件FileInputStream fin=new FileInputStream("my.ini"); // 打开文件Properties props=new Properties(); // 建立属性类props.load(fin); // 读入文件fin.close();