在ASP中是用FSO来解决
JSP中也应该有FSO得
你搜索FSO查他的资料来写就可以了
/////////////////////////////////////////////////////////////////////
欢迎大家使用编程文档手册V3.5,编程辅助类软件 集编程文档的收集、查询、浏览、编辑等功能于一体的辅助编程类软件。通过日积月累,相信本软件将给广大程序开发人员以及编程爱好者们带来很大的帮助。下载地址:
天空软件站:http://www.skycn.com/soft/11906.html
华军软件园:http://www.onlinedown.net/soft/6496.htm
详细说明与注册地址:http://www.sharebank.com.cn/soft/soft_view.php?id=10648
官方网站:http://promanual.jijun.org
工作室站点:http://www.jijun.org欢迎大家使用,欢迎大家多多指教。
/////////////////////////////////////////////////////////////////////
JSP中也应该有FSO得
你搜索FSO查他的资料来写就可以了
/////////////////////////////////////////////////////////////////////
欢迎大家使用编程文档手册V3.5,编程辅助类软件 集编程文档的收集、查询、浏览、编辑等功能于一体的辅助编程类软件。通过日积月累,相信本软件将给广大程序开发人员以及编程爱好者们带来很大的帮助。下载地址:
天空软件站:http://www.skycn.com/soft/11906.html
华军软件园:http://www.onlinedown.net/soft/6496.htm
详细说明与注册地址:http://www.sharebank.com.cn/soft/soft_view.php?id=10648
官方网站:http://promanual.jijun.org
工作室站点:http://www.jijun.org欢迎大家使用,欢迎大家多多指教。
/////////////////////////////////////////////////////////////////////
解决方案 »
- 想学jsp,求推荐入门教材
- 急求一个在线客服系统
- 在struts2的action中怎么得到servletcontext环境 急 在线等 好使 马上给分
- 跪求,各位帮忙解决出错问题,100分相送!提出解决大大给分!
- 关于替换问题
- 新手提问 关于字符串判断的提问
- colname like '%?%'用pstmt怎么绑定这个变量
- 用JBUILDER8调试一个JSP程序出现如下问题,谁知道何原因?
- 我的第一个问题!
- 求救:Tomcat+IIS整合后,页面用Get方法传值,无法取得参数值
- 急!跪求!oracle中的乱码?太奇怪了!555555555
- ireport0.4.0 Adobe Reader 6.0 pdf汉字问题。
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: riozn</p>
* @zhouzm
* @version 1.0
*/import java.io.*;public class counter {
private String currentRecord=null;
private BufferedReader file=null;
private String path=null; public counter() { } public String readFile(String fileName){
path=fileName;
String returnStr=null;
try{
file=new BufferedReader(new FileReader(path));
}
catch(FileNotFoundException e1){
System.out.println("文件没有找到!");
return null;
}
try{
currentRecord=file.readLine();
}
catch(IOException e){
System.out.println("读取数据错误.");
return null;
}
if (currentRecord==null)
returnStr="100000";
else{
returnStr=currentRecord;
}
return returnStr;
} public void writeFile(String fileName, String counter) throws FileNotFoundException{
path=fileName;
int writeStr=Integer.parseInt(counter)+1;
try{
PrintWriter pw=new PrintWriter(new FileOutputStream(path));
pw.println(writeStr);
pw.close();
}
catch(IOException e){
System.out.println("写入文件错误"+e.getMessage());
}
}
}
上边这个是计数器的例子
计数器的数字就是放在一个文本文件中,跟你要求的ini文件是一样的
你稍微修改下上面的程序就可以了:)