actually, I have begun on the read-file API. Here is what you can do so far:
String filePath =
NSBundle.getMainBundle().pathForResource("AndroidManifest", "xml");
NSData manifestFile = NSData.dataWithContentsOfFile(filePath);
Of course this is only feasible for smaller files. There is also no
write-API.
Arno
Wolfgang Korn wrote:
> Blake,
>
> currently we do not support file access. The only API we currently offer
> is reading and writing of key/value pairs using the NSUserDefaults
> class. Especially the NSFileHandle/Manager classes are not supported by
> now. The same is true for the NSPersistentStore class.
>
> -- Wolfgang
>
>
> blake miller wrote:
>> I'm trying to find the best way (if there is any currently) to store
>> data on the iPhone. I'm having trouble figuring out the Java API for
>> Cocoa, particularly with how to do something like save and read a file
>> to the device. Can someone provide a code sample for this, or direct
>> me to the correct Java classes?
>>
>> Thanks
>> Blake
>> bla...@gm...
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> xmlvm-users mailing list
>> xml...@li...
>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> xmlvm-users mailing list
> xml...@li...
> https://lists.sourceforge.net/lists/listinfo/xmlvm-users
|