>>> Hi,
>>> I have this file.txt
<snipped>
>>> I want to open it and modify row "overallstatus: 00101100" with
>>> "overallstatus: 00001100" using java commands.
[quoted text clipped - 10 lines]
>
> - Oliver
to the OP:
Just to make sure you understand the basics here, a word of explanation.
You cannot just replace one line in a simple text file, you need to
recreate the whole file because you don't know how long a line is. You
could make sure all lines are of equal size (for example append spaces),
forward to the correct line, and overwrite that. This is usually not
appropriate for text files though.
Mostly , for plain text files you'll need one of the schemes mentioned by
the other posters.

Signature
Beware the False Authority Syndrome
Roedy Green - 10 Jan 2006 20:22 GMT
>You
>could make sure all lines are of equal size (for example append spaces),
>forward to the correct line, and overwrite that. This is usually not
>appropriate for text files though.
and even then you have the problem of encoding. If you are using
UTF-8, for example, some characters can take up more than one byte.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.