class WriteRecorder
 {  RandomAccessFile random; 
    File f=new File("E:/tomcat/webapps/testonline/成绩单.txt");
    WriteRecorder()
    { try{  random=new RandomAccessFile(f,"rw"); 
      } 
      catch(Exception ee){}  
    }
    public void write(String name,String number,int score)
    {  try{ random.seek(random.length()); 
         String mess=" Name:"+name+","+number+","+score;
         random.writeBytes(mess);
         random.close();
       } 
       catch(Exception ee){System.out.println(ee);}   
    }
 }