File Design Question

D

Darren Coleman

Being new to the compact Framework I'm trying to decide on how to
store data to the Pocket PC device that I'm using.

My application will be collecting "Ticket" data, for each new "ticket"
I was thinking of have a new file created in a data folder. Once the
data was collected I would place the PocketPC in a cradle where a
windows application would connect through activesync and download the
files.

What I'm trying to figure out is what would be the best file format to
put that collected files into. I was thinking that an xml file would
be fine but I'm concerned about file size and write speed on the hand
held.

Does anyone have any suggestions?
 
G

Ginny Caughey [MVP]

Darren,

How many tickets do you expect to collect before deleting them? XMLcould
work just fine, but it does take up a lot of space for the tags.
 
D

Darren Coleman

Well size is a concern as but keeping it in a xml format has advantages. Is
there a good middle ground? Is compressing(zipping) a good option?
Thanks for your time.
 
G

Ginny Caughey [MVP]

Darren,

Consider CSV as a good middle ground. There is a CSV DataAdapter on
www.opennetcf.org that makes working with CSV files almost as easy as XML,
and depending on the types of fields you have and the field names, the files
can be significantly smaller than XML.

--
Ginny Caughey
..Net Compact Framework MVP


Darren Coleman said:
Well size is a concern as but keeping it in a xml format has advantages.
Is there a good middle ground? Is compressing(zipping) a good option?
Thanks for your time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top