在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欢迎大家使用,欢迎大家多多指教。
/////////////////////////////////////////////////////////////////////

解决方案 »

  1.   

    http://search.csdn.net/Expert/topic/1524/1524617.xml?temp=.2694208
      

  2.   

    package testcounter;/**
     * <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文件是一样的
    你稍微修改下上面的程序就可以了:)
      

  3.   

    其实,ini和txt文件处理一样,用同样的读写文本程序读写ini是一样的。