Hi,
Yes, I had written it using Scanner to read the file and search for the string.
I mainly need help in two things:
1) getting the start and end line numbers once the node name is found.
2) based on the line numbers, remove the contents of the file
Sample node entry:
WAS_CD1:\ // Here's the start line number
:conn.retry.stwait=00.00.00:\
:conn.retry.stattempts=6:\
:conn.retry.ltwait=00.00.00:\
:conn.retry.ltattempts=6:\
:tcp.max.time.to.wait=0:\
:runstep.max.time.to.wait=0:\
:contact.name=:\
:contact.phone=:\
:descrip=:\
:sess.total=255:\
:sess.pnode.max=255:\
:sess.snode.max=255:\
:sess.default=1:\
:comm.info=oldadcvipa1.ipc.us.aexp.com;1364:\
:comm.transport=tcp:\
:comm.bufsize=16000:\
:pacing.send.delay=0:\
:pacing.send.count=0: // Here's the end line number