Skip to content
Advertisement

How to get file name having particular content in it using java?

Here I am trying to read a folder containing .sql files and I am getting those files in an array, now my requirement is to read every file and find particular word like as join if join is present in the file return filename or else discard , someone can pls help me with this ..

JavaScript

Advertisement

Answer

You can search word in file as belwo, pass the path of file

JavaScript

}

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement