[EMAIL PROTECTED] wrote:
 I want to create a file on the phone. Which API's I can use for that.
eg. I want to create a xml file. How can I create,  read and write to it?

Use the functions VFSFileOpen(), VFSFileWrite(), VFSFileRead(), and
VFSFileClose().

You can create a file with VFSFileOpen() by putting the vfsModeCreate
flag as part of its third parameter.

There is not really a direct equivalent to printf().  The easiest thing
to do is to use StrPrintF() to write into a buffer of the appropriate
size, then append that buffer to the file with VFSFileWrite().

To handle the XML structure within the file, you will either need to
handle it manually yourself or download an XML library and compile that
into your application.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to