input:
source:1.1.2.3:?:
destination:1.2.3.4
data:shfg hshsg h
am trying to extract 1.1.2.3
from source:1.1.2.3
please suggest :!:
while(!mod.eof())
{
mod.getline(buf,100);
if(strstr(buf,"Source"))
{
w=strchr(buf,':');
strcpy(str,*w);
}
}