开发者

How we can write in a file through a j2me code?

How we can write in a file t开发者_开发知识库hrough a j2me code ?


Does your J2ME support JSR-75? If so, see here


http://developers.sun.com/mobility/apis/articles/fileconnection/

this is he JSR75 spec, basically it just means to create a connector (FileConnectoion) and open a stream, once you hve it you can do various operation with hte file like chance to hidden, delete, create open etc..

If JSR-75 does not exists on the device (rare these days) your ownly options for storage is RMS, and if you want just to read files you have in your application you can use class.OpenResourceasStream(resname);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜