Appending data to already existing file.
I have to read a input java file and search for a particular word in that file.
As soon as i find the word i have to add a comment to the end of the particular line in the input java file.
anyone please tell me how to do this?
I have tried with append option but it is appending only at the end of the file,not at he desired line.
Please tell me what option i have to use to do this.

