Results 1 to 6 of 6
  1. #1
    djr1 is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default How to store data.

    Hi.

    Iam creating a small java program that will store some information about something. But when the program terminates, the data is lost and i need to register the information all over again.

    What is the best way solving this problem ?

    Thx.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    12

    Default

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    djr1 is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default

    Thx for the answer.

    but what about DB or plain .txt files? Any good?

  4. #4
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    12

    Default

    If it's a small application, which doesn't use a database so far, I'd go for files. But if you are already using a database, use that.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  5. #5
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    366
    Rep Power
    10

    Default

    Quote Originally Posted by PhHein View Post
    What could be typical use of this pref api?

    Is it smart to use it and replace *.properties files ?

    Are there restrictions in writing that info in windows registry or linux file system (rwx?)

    ty

  6. #6
    slavamk is offline Member
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

Similar Threads

  1. How to store other languages data in DB
    By Deepa in forum New To Java
    Replies: 3
    Last Post: 12-23-2009, 03:52 PM
  2. help me to store data in a class
    By neeraj.singh in forum New To Java
    Replies: 2
    Last Post: 08-06-2009, 08:31 AM
  3. What's the fastest way to store data?
    By gilbertsavier in forum JDBC
    Replies: 0
    Last Post: 08-05-2009, 10:41 AM
  4. Store data is not retrieving
    By JavaJunkie in forum CLDC and MIDP
    Replies: 2
    Last Post: 05-30-2009, 08:08 AM
  5. how to store the data in data base
    By eclipse3.4ide in forum New To Java
    Replies: 5
    Last Post: 02-03-2009, 04:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •