/    Sign up×
Community /Pin to ProfileBookmark

a logical question

hey guys, i have a logical question, cause i have yet to do what i want to do. i am trying to create a program that stores friends information. i need help as to how to store each individuals information, and retyrieve that persons information. i mean should i have the program create individuale text files with each persons information, and then later retrieve that info from the txt file?im not sure as to what to do

to post a comment
Java

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJun 04.2005 — it can be solved easil using a rdbms(relation data base)...however if writing to a file is what you want to procede with then try using xml and create a person tag with any number of sub tags...if thats too hard then a CSV file should do...where each line is probably all the infor about a person
Copy linkTweet thisAlerts:
@keko2005authorJun 04.2005 — is an rdbs like mysql? cause if it is, can i encorperate it into the jar file? or do i have to have them connect to a server? cause if they connect to a server, thats not what i want. and u say xml might be the way? do u have a link for a xml thing?
Copy linkTweet thisAlerts:
@Khalid_AliJun 04.2005 — there are tone of resources about XML over the net, just do a google search.

And yes its like mysql and it will have to connect to a db server.

Now you mentioned that you want to include such file in a jar file that doesn' sound like a good idea..see the db file will increase in size or decrese in size depending upon insertions/deletions. you will have to keep this db file a csv or xml out side of the jar.
×

Success!

Help @keko2005 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...