当前位置: 代码迷 >> Brew >> j2me读写Brew系统文件解决方法
  详细解决方案

j2me读写Brew系统文件解决方法

热度:1376   发布时间:2013-02-26 00:00:00.0
j2me读写Brew系统文件
我用j2me编码,想在brew系统里生成一个文件夹,现在路径是 fs:/abc/,建目录代码是:
Java code
FileConnection fc = (FileConnection) Connector.open(name,                    Connector.READ);            try {                if (fc.exists()) {                    return true;                }            } finally {                fc.close();            }FileConnection fc = (FileConnection) Connector.open(name,                    Connector.WRITE);            try {                fc.mkdir();                return true;            } finally {                fc.close();            }


但是我发现目录建立不起来,请大家帮我出出注意!

------解决方案--------------------------------------------------------
用j2me的语言和结构来写Brew的东西?
------解决方案--------------------------------------------------------
虚机本身有限制吧
  相关解决方案