Results 1 to 4 of 4
  1. #1
    karq is offline Member
    Join Date
    May 2010
    Posts
    63
    Rep Power
    0

    Default java file writting

    Hey,

    I have a todo list project going right now. And I'm stuck there where I have to store info.

    What is the best way to store(place, todo, time)? In php I would store info in a txt file or database. I want to run it as a app on my pc not on the web, so a external database out of the question.

    Are there any built in database software that I can use?Or should I save info into a txt file?

  2. #2
    Harpreet1111 is offline Member
    Join Date
    Jul 2009
    Posts
    12
    Rep Power
    0

    Default

    It is your choice where you want to store data... You can store both in file or in database....

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I don't know of any one-size-fits-all solution. How you store your information will vary and depend greatly on your requirements. If just a few bits of linear information, then a text file is fine, if a huge amount of complex information, then perhaps a database with all sorts of other possible solutions in between.

    As for bundled databases, I think that Java either comes with Apache Derby (called Java DB by Sun/Oracle) or that Derby can be downloaded from Java sites, but here too there are other worthwhile solutions including MySQL, SQLite, H2, ...

  4. #4
    karq is offline Member
    Join Date
    May 2010
    Posts
    63
    Rep Power
    0

Similar Threads

  1. Problem with writting in JEditorPane.
    By marox in forum AWT / Swing
    Replies: 11
    Last Post: 04-20-2010, 11:25 PM
  2. Writting output to file!
    By hakan123 in forum New To Java
    Replies: 8
    Last Post: 11-19-2009, 04:39 PM
  3. writting extended ascii chars on socket........or Endianness Issue......??
    By sachinj13 in forum Threads and Synchronization
    Replies: 8
    Last Post: 09-23-2008, 02:20 PM
  4. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 09:57 AM
  5. Replies: 7
    Last Post: 05-23-2008, 03:46 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
  •