Looking for a line with the word Test in a text file: How to save the remaining lines in the second text file where there is no word Test .
I do this: Var OnovnoyF, fsave, fOstatok: TextFile;
// Поиск нужных строк if (pos('Test',S) > 0) then writeln(fsave, S); // Сохранения остатка // Поиск нужных строк if (pos('Test',S) < 0) then writeln(fOstatok, S);
But the rest is not saved ... Where is the puncture?
else
branch to the first condition? - teran 5:42 pm