FileInputStream is = null;
String a,b;
Properties dbProps = null;
try{
is= new FileInputStream(sFile);//读取系统属性文件
dbProps = new Properties();
dbProps.load(is);
a= dbProps.getProperty(a,"a");
b= dbProps.getProperty(b,"b");
dbProps.clear();
is.close();
}
catch (IOException e) {}
String a,b;
Properties dbProps = null;
try{
is= new FileInputStream(sFile);//读取系统属性文件
dbProps = new Properties();
dbProps.load(is);
a= dbProps.getProperty(a,"a");
b= dbProps.getProperty(b,"b");
dbProps.clear();
is.close();
}
catch (IOException e) {}
解决方案 »
- 怎么配置多个端口访问在webspere上部署的一个项目
- 多项目关联
- struts2验证中 的 requiredstring和required区别是什么
- 各位:jsp页面中怎样读取文件
- 页面上的模糊查询问题,亟待解决!!!
- 一个简单问题--关于文本框 限制输入的!
- 有关页面刷新问题
- 怎样在系统退出时监听所有session的关闭事件?
- JSP运行环境配置,通过后立即给分
- 据Servlet API记载:HttpSession明明是Interface,而且我也还没找着哪个类实现了它,为什么它能实例化对象呢?
- jsp/js/javabean的参数传递问题!
- 请问COM技术和WEB技术有什么区别和联系?在线等
public void setProperty(String str1,String str2){
FileInputStream is = null;
Properties dbProps = null;
try{
is= new FileInputStream(sFile);//读取系统属性文件
dbProps = new Properties();
dbProps.load(is);
dbProps.setProperty(str1,str2);
dbProps.store(new FileOutputStream(sFile),"#"+_sBJ);
}catch (IOException e) {}
}
public void setProperty(String str1,String str2){
FileInputStream is = null;
Properties dbProps = null;
try{
is= new FileInputStream(sFile);//读取系统属性文件
dbProps = new Properties();
dbProps.load(is);
dbProps.setProperty(str1,str2);
dbProps.store(new FileOutputStream(sFile),"#"+_sBJ);
}catch (IOException e) {}
}