Google Answers Logo
View Question
 
Q: Java Program ( No Answer,   5 Comments )
Question  
Subject: Java Program
Category: Computers > Programming
Asked by: kateric2006-ga
List Price: $10.00
Posted: 12 Apr 2006 15:36 PDT
Expires: 12 May 2006 15:36 PDT
Question ID: 718328
I'm looking to create a Java program that will store several types of
data in a file, for example : ID number, name, age, dob, address etc
etc. I want to able to display this information, search for a
particular record using the ID number and add new records (from the
java program to file).
Answer  
There is no answer at this time.

Comments  
Subject: Re: Java Program
From: avatarng-ga on 14 Apr 2006 01:09 PDT
 
Please be specific your requirements:

1. Do you want a solution for USD10, propose here?

2. What type of file format do you want? a text file, or a CSV file (a
type of Excel file: Comma Seperate Values), or a XML file, or a
database ...

3. Do you want the so-called "address book" (my own term) to be a
standard format (can be read by Gmail, Outlook, Yahoo mail, Outlook
... etc), or just a proprietary format.

4. Do it need to support for export format (e.g.: to handphone, to PDA
using infra-red, bluetooth, network shared ... etc).

5. Estimated amount of data (for search efficacy consideration).

6. How portable and use on what device? E.g.: For Pentium II PC with
64MB ram only, or J2ME enable devices ... etc.

7. Supporting multiple user?

8. Multilingua? How many language to be supported, what are them
(english, chinese, japanese, french, ...)?

Sorry for asking so much, but this is how I find out requirements from my customer.

Notice: Answers to above questions can define a scope for the
application ... negotiable.


By Avatar
Subject: Re: Java Program
From: kateric2006-ga on 14 Apr 2006 11:33 PDT
 
1. Yep.

2. A text file will do. 

3. No, it doesn't need to be read by a mail program. 

4. No.

5. Very small. Lets say no more than 20 records.

6. No, it won't be used on a mobile or anything like that. Just an ordinary PC. 

7. Not required.

8. Just English.
Subject: Re: Java Program
From: avatarng-ga on 15 Apr 2006 03:32 PDT
 
Try this api: http://datafile.sourceforge.net/

Sorry for can't show you the codes (my development PC is down), so try
up your self ... I think this is the fastest way to do it.

So your contact files can be save in CSV format, and dynamic field
binding is possible.
Subject: Re: Java Program
From: roor4-ga on 21 Apr 2006 03:11 PDT
 
I can do it.its pretty easy.
But,i need to know the fields & size to store in the DB.
Subject: Re: Java Program
From: kateric2006-ga on 25 Apr 2006 03:09 PDT
 
I've since found this site :
http://www.java2s.com/Code/Java/File-Input-Output/Datafile.htm which
gives the closest example of what I'm looking for.

roor4 - The field size's should be a max of 20 characters for each record.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy