Can we write a program for GREP SEARCH in particular file??


procedure TForm1.DriveComboBox1Change(Sender: TObject);
begin
DirectoryListBox1.Drive := DriveComboBox1.Drive;
FileListBox1.Drive := DriveComboBox1.Drive;
FileListBox1.Directory := DirectoryListBox1.Directory;
end;

procedure TForm1.DirectoryListBox1DblClick(Sender: TObject);
begin
FileListBox1.Directory := DirectoryListBox1.Directory;
end;

I wrote a program for the selection of file like this.

Now I want to search for a particular word like class in that selected file automatically.(Not manually)

Can we do this one??

If it is possible pls send me the reply..

Thabks in advance..
Leela.

Now I want to search for a particular word like class in that selected file automatically.(Not manually)

Can we do this one??

Take a look in this other post. If it ok, You will must be pass the selected file name to SearchingInFile procedure and make the changes that You need.