2009-08-20 79 views

回答

1

下面就來具體的鏈接FileConnection。希望有所幫助! itteju擊敗了我。 :)

0

看一看FileConnection界面javax.microedition.io.file

0
/** File connection object */ 
      FileConnection fc = (FileConnection) Connector.open(Const.FILE_PATH); 
      if (fc.exists() == false) { 
       fc.create();// create file at the location path 
      } 

      OutputStream os = fc.openOutputStream(); 

      os.write(log.getBytes()); // Write text to file 

      os.close(); 
      fc.close();// close the file connection object