Results 1 to 4 of 4
  1. #1
    visitchandu is offline Member
    Join Date
    Jun 2009
    Posts
    1
    Rep Power
    0

    Default operations on records into files without DB

    hi i want a programe that how to Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record, List Records. Each Record contains: Name(max 100 char), Age, Notes(No Maximum Limit). No database should be used. All data must be stored in one or two files. Listing records should print the names of the users in alphabetical order. And the important thing is, total file should not be re-written for every add/delete operation.
    please provide the solution
    thank you

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    441
    Rep Power
    6

    Default

    You can use MS Excel instead of Access.But one thing,You should be familiar in java.io package.

    I hope this is an interview ques.
    Mak
    (Living @ Virtual World)

  3. #3
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    You can write this to a file in xml format, and then read it back in later on.
    Java Code:
    <record>
      <name>visitchandu</name>
      <age>0</age>
      <notes>what have you done?</notes>
    </record>
    And the important thing is, total file should not be re-written for every add/delete operation.
    You can have it save the file only on exit or at the user's whims.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,846
    Rep Power
    19

    Default

    Quote Originally Posted by visitchandu View Post
    please provide the solution
    Don't you think you should at least give it a go yourself. and then ask specific questions when you hit a problem?

    But if you insist, my rates aren't that outrageous...

    Quote Originally Posted by visitchandu View Post
    thank you
    No...thank you!

Similar Threads

  1. Bitwise operations with long
    By NewJavaBean in forum New To Java
    Replies: 2
    Last Post: 04-07-2009, 07:37 PM
  2. forcibly terminating io operations
    By arnab321 in forum CLDC and MIDP
    Replies: 2
    Last Post: 11-15-2008, 08:51 PM
  3. Illegal Arithmetic Operations?
    By Cruor in forum New To Java
    Replies: 13
    Last Post: 09-19-2008, 04:46 PM
  4. Stack push/pop/peek operations
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-29-2008, 09:03 AM
  5. String operations..
    By sireesha in forum New To Java
    Replies: 4
    Last Post: 12-14-2007, 02:04 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
  •