有类似delphi的xxx.SaveToFile('kkkk');吗?

解决方案 »

  1.   

    没有,你自己创建文件FileOutputStream 来保存
      

  2.   

    用 RandomAccessFile or FileOutputStream 
      

  3.   

    将TextArea中的内容读出来,放在一个Stringbuffer中,然后
    你自己创建文件FileOutputStream (string name)
    Creates an output file stream to write to the file with the specified name然后,把buf的内容写入流中,用write()的方法
    具体的实现细节你自己写吧
      

  4.   

    APPLET不能在可护短直接读写文件我将他提交给sevlet处理