procedure TForm1.sButton1Click(Sender: TObject);
var base: TStringList; i: Integer;
begin
base:=TStringList.Create;
sMemo1.Clear;
sOpenDialog1.FileName:='';
sOpenDialog1.Filter:='base|*.txt';
if sOpenDialog1.Execute then
begin
base.Clear;
base.LoadFromFile(sOpenDialog1.FileName);
end;
for I:=0 to base.Count-1 do
if (Pos('[NotPass', base[i])<>0) then base.Delete(i);
sMemo1.Lines.Add(base.Text);
FreeAndNil(base);
end;