where should i store my data: text file or a database?

D

David

i'm a jackaroo, sorry 4 my stupid question.

my assignment required to detect data transfer error, as part of it, i need
to store some info, which one is easier to be achieved: a text file or a
database.

i code it with JDK1.3.1+ Win2000, but i have to test it on Linux, if i use
database, how can i configure the environment.
 
B

Bruce Lewis

David said:
i code it with JDK1.3.1+ Win2000, but i have to test it on Linux, if i use
database, how can i configure the environment.

Sounds like you want Hypersonic SQL (hsqldb).
 
R

Roedy Green

my assignment required to detect data transfer error, as part of it, i need
to store some info, which one is easier to be achieved: a text file or a
database.

It is much simpler to store data is a flat file. You may have some
trouble finding some data transfer errors. With self-correcting
modems, and the TCP/IP retransmit you don't get errors
the way you used to, just disconnects.

You can use a digest/checksum to ensure a file arrived intact. I
would think that would likely be what your prof has in mind. See
http://mindprod.com/jgloss/digest.html and
http://mindprod.com/jgloss/crc.html
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top