Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    1,148

    Re: File editing problem

    Having a hardcoded value is a poor technique.

    Here's what I'm testing with:

    X</channel>
    </rss>

    The debug print out:
    before len=19
    offset=1 fSize=19 content.len=3
  2. Replies
    11
    Views
    1,148

    Re: File editing problem

    What is the -18 for?

    insert(file.getPath(), file.length()-18, insert);
    Can you make a minimum sized .xml file? Maybe 5 lines.
  3. Replies
    11
    Views
    1,148

    Re: File editing problem

    Can you make a much smaller test.xml file so its easier to see what happens.
  4. Replies
    11
    Views
    1,148

    Re: File editing problem

    Sorry, I don't want the full code. I don't use eclipse.
    Can you make a Short, Self Contained, Correct Example for testing?
  5. Replies
    11
    Views
    1,148

    Re: File editing problem

    Can you make a Short, Self Contained, Correct Example for testing?

    What's in the file that is being written to? Does the code skip over one character that appears as a random character?
  6. Replies
    11
    Views
    1,148

    Re: File editing problem

    Is it always the letter Z and in the same location?

    Where in the code does the "Z" first appear? Add some debug statements to test all Strings for "Z" and to print that String when it is found.
Results 1 to 6 of 6