|
@ -123,13 +123,9 @@ namespace fileFinder |
|
|
|
|
|
|
|
|
private bool isFileContainQuery (string[] fileLines, string query) |
|
|
private bool isFileContainQuery (string[] fileLines, string query) |
|
|
{ |
|
|
{ |
|
|
int count = 0; |
|
|
foreach (string item in fileLines) |
|
|
while (fileLines.Length > count) |
|
|
if (item.IndexOf(query) != -1) |
|
|
if (fileLines[count].IndexOf(query) != -1) |
|
|
|
|
|
{ |
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
|
|
|
count++; |
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|