> > The application I am doing now needs to copy an entire database file(e.g. > > temp.pdb) to another one. Is there any API like file management can copy > or > > rename a database's file name? > > you need to create a new database, iterate through the existing and > create/copy all resources into the new database. its a couple of API > calls - and, a for loop.. also depends on what type of database you are > working with (resource, record). different API's for each.
This might work, depending on how faithful the copy has to be. Alternatively he could use ExgDBWrite to copy the database to a temporary file stream (you seem to know all about these), and then use ExgDBRead to create an exact copy. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
