java - i want to search strings from domain file in log file...for reading two files i used nested loops...incorrect output -
while((sline= bbr.readline()) != null) { while ((line = br.readline()) != null){ if (line.contains(sline)){ tracker.append(line); tracker.append("\n ");tracker.append("\n "); string track = new string(tracker.tostring()); writetofile(c,track,"trackinginfo.txt"); } }// end of while1 }// end of while2 br.close(); bbr.close(); i use nested loops first reading domain file , second logfile. first string domain file searches whole log file not other strings in domain file.
Comments
Post a Comment