(imported topic written by Techadmin)
Hi,
Below is the code, i want to get the ip address from the below code(6th line) in one text file and store it in another text file…
File 1: (Get Ip address from 6th line here)
<PROPERTY propname=“host”
propvalue="Treats"/>
<PROPERTY propname=“port”
propvalue="10"/>
<PROPERTY propname=“host”
propvalue="172,23,34,45"/>
<PROPERTY propname=“port”
propvalue="123"/>
<PROPERTY propname=“host”
propvalue="172,23,34.56"/>
<PROPERTY propname=“port”
propvalue="435"/>
File 2: (I Have to store that ip address from file 1 in the 6th line inside propvalue.)
<PROPERTY propname=“host”
propvalue=""/>
<PROPERTY propname=“port”
propvalue=""/>
<PROPERTY propname=“host”
propvalue=""/>
<PROPERTY propname=“port”
propvalue=""/>
Can somebody help me on this please…