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.

Member Avatar for Micheus

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.