thought i would post some additional info here, the answer can vary :)

> > How is the best way to handle this data in PalmOS? I gather that 2 MB is
> > too large for Palm applications, which have a 64 KB limit.
> 
> STOP what you are doing: I think you are indeed headed down the wrong path.

not necessarially :) i used to use file streaming in some of my big 
products (which, could be very similar to what the original poster wants)

> The better way to implement this would be to use standard PalmOS record
> databases (PDBs) to contain your data, not a filestream database.
> A PalmOS database is a collection of records.  A record is just a chunk of
> bytes, organized however you see fit for your application.

FIRST:
this is only feasible if the data file itself can actually be segmented
down to a series of records in a database; the original poster did say
each line was effectively a "record" so, it would be ok.

SECOND:
with the introduction of VFS - it might be feasible to provide another 
option as well to obtain the information (from memory card). in this 
case, the code wouldn't be too differnet than doing file streaming.

THIRD:
if you are not going to edit the file on the device; filestreaming is
a very viable option actually. the filestreaming format uses record databases
by default; and, inserting lines at the beginning can throw off the whole
database (rather than just updating a single line)

the reality is that there may be a number of factors that you should
consider when making a decision about how to implement accessing 
information for your application.

another factor is that file streaming has never been officially 
documented by palm :) but, it was introduced in 1998/99 with the Palm III
and they haven't changed anything in the format since then - so, it has
been semi-documented by many (including myself)

cross fingers for OS6 support :)

> > The DOS version is a text file, with each record equal to one line, and
> > another file that is an index into that file, to make searches fast. The
> 
> Implement this with each record of data from your DOS app as individual
> records in the PalmOS database, and use a second index database if you 
> need to.


i would recommend implementing a two way approach:

  - ondevice storage (record database if RW, file streaming if RO)
  - external storgae (VFS routines to read as in MSDOS)

> You will gain many considerable advantages using the record database APIs
> instead of the file streaming APIs.


filestreaming = record database. if you dont change the file on device,
there is no considerable advantage. you will have more advantage that 
your on device API's will look similar to the VFS ones :) 

however, if you are editing the file on the device, records are 
definately the way to go.

> So I guess the File Streaming tools are the ones I should use?

many tools available; 

the best one for manipulating .pdb or .prc files (in my opinion)
is 'par' :) google for it. its open source as well - and, handles 
nearly everything. being command line, is a favourable one for me. :)

---
Aaron Ardiri (Skype:: callto://ardiri)
PalmOS Certified Developer
[EMAIL PROTECTED]
http://www.mobilewizardry.com/members/aaron_ardiri.php

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

Reply via email to