Results 1 to 4 of 4
  1. #1
    coollucky is offline Member
    Join Date
    Nov 2011
    Posts
    9
    Rep Power
    0

    Question Updating a text file

    Hi everyone!
    I want to develop a program that writes a number to the file in an ordered manner. For example: I've got a file with the numbers 3 4 7 and I want to add 5.
    My program has to find its correct order and add it to the file.

    How can I achieve that? If possible give a source code...
    Thanks in advance.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,969
    Rep Power
    8

    Default Re: Updating a text file

    Quote Originally Posted by coollucky View Post
    If possible give a source code...
    That is absolutely not how this works. We aren't going to do your work for you. What have you tried so far? Where are you stuck? If you want help, ask a specific question and post an SSCCE that demonstrates the problem.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    coollucky is offline Member
    Join Date
    Nov 2011
    Posts
    9
    Rep Power
    0

    Default Re: Updating a text file

    I know how to write/read a data to/from a file. My problem is that I can't modify and make an ordered input to the file. Whenever I try to write some data I'm loosing all previous data.

  4. #4
    coollucky is offline Member
    Join Date
    Nov 2011
    Posts
    9
    Rep Power
    0

    Default Re: Updating a text file

    Thanks. In sha Allah I've solved the problem.

Similar Threads

  1. Replies: 2
    Last Post: 10-27-2011, 11:34 AM
  2. Replies: 1
    Last Post: 10-26-2011, 07:03 PM
  3. Updating text displayed in a Swing Application
    By Fubarable in forum AWT / Swing
    Replies: 1
    Last Post: 09-16-2011, 05:31 AM
  4. Updating a .jar File
    By Kyx in forum New To Java
    Replies: 3
    Last Post: 08-20-2010, 03:20 AM
  5. updating a text field basing on a dropdown list choice
    By amar4java in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-13-2009, 10:26 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
  •