Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    To copy the characters of a String you could use the charAt() method to get each char and save them in a StringBuilder class object. The StringBuilder class has methods for adding char and getting a...
  2. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    OK, that's should be an easy thing. Have you tried it? What problems are you having?
  3. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    Is this the update to the file: change a "c" to a "g"?
    Read the file into memory, change the "c" to a "g" and write the updated data back to the file.
  4. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    What do you want the file to look like after it is updated given the contents shown as in post#7 when the update starts?

    Basically, read in the file, update it in memory and write out the new...
  5. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    Please make a simpler example to work with. That post has way too many letters in it.
  6. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    I'm not sure what you are asking.
    Don't copy to the file, what you don't want in the file.

    Say the file has: ABC and you want to insert DE at the front to get: DEABC
    can you explain what you...
  7. Replies
    15
    Views
    1,460

    Re: Writing to a txt file from the top.

    Sort of like when you have a pile of books and you want to add some more books at the bottom of the pile.
    All the books must be picked up and the new books moved into place and the old books then...
Results 1 to 7 of 7