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

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -