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

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -