I wanna filter a .log file and get only the lines that have the word 'commands' on it.
I´m using the folowing script:
procedure TForm1.Button2Click(Sender: TObject);
begin
AssignFile(arq,filelist.FileName);
Reset(arq);
While not EOF(arq) do
begin
readln(arq, rec);
i := Pos('commands', rec);
if i <> 0 then text2.Items.Append(rec);
end;
end;
text2 is an listbox.
when the file is too long i get the error 'EOUTOfResources "unable to insert line"'.
what is the best object i can use ???
i tried to use richtext but it´s not working.
Thanks Rodrigo Moreth
I´m using the folowing script:
procedure TForm1.Button2Click(Sender: TObject);
begin
AssignFile(arq,filelist.FileName);
Reset(arq);
While not EOF(arq) do
begin
readln(arq, rec);
i := Pos('commands', rec);
if i <> 0 then text2.Items.Append(rec);
end;
end;
text2 is an listbox.
when the file is too long i get the error 'EOUTOfResources "unable to insert line"'.
what is the best object i can use ???
i tried to use richtext but it´s not working.
Thanks Rodrigo Moreth