search file java

Solutions on MaxInterview for search file java by the best coders in the world

showing results for - "search file java"
Ilaria
09 Sep 2019
1File dir = new File(directory);
2
3File[] matches = dir.listFiles(new FilenameFilter()
4{
5  public boolean accept(File dir, String name)
6  {
7     return name.startsWith("temp") && name.endsWith(".txt");
8  }
9});
10