how to delete?

hi friends, i have an problem. i would like to search string in a flat file and get the entire row and overwrite and update in the file how to do? And like the same i would like to delete a row from the flat file and after getting this i would like to delete the entire row. how to do ? Urgent.

with regards...

[331 byte] By [jeevankc] at [2007-9-26 4:29:31]
# 1
You don't actually delete a line from the existing file. Use a FileReader to read the file and rewrite it to a new file using FileWriter minus what you want deleted. This can be done on the same file name if you read the entire file, close it, then open the writer on the same name.
simplejava at 2007-6-29 17:40:58 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...