Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,172

    Re: Editing a Text File in Java, a specific part.

    Writing to a file will replace ALL of its old contents if the write is NOT in append mode.
    Write a small test program that reads a small file, changes it and writes it out. Look at what was written.
  2. Replies
    5
    Views
    1,172

    Re: Editing a Text File in Java, a specific part.

    Read all the file into memory, make the changes, write the file back to disk.
    If you know the exact location (the displacement from the first byte of the file) of the characters in the file you...
Results 1 to 2 of 2