开发者

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

开发者 https://www.devze.com 2023-01-20 06:30 出处:网络
How we can write in a file t开发者_开发知识库hrough a j2me code ?Does your J2ME support JSR-75? If so, see herehttp://developers.sun.com/mobility/apis/articles/fileconnection/

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

精彩评论

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

关注公众号