{{theTime}}

Search This Blog

Total Pageviews

Java Program to List Todays File in a Directory with file name starting MMDD

import java.io.* ;   
public class ListOfTodaysFiles {
    public static void main(String str[]){
        String todaysfilepattern = "MMDD\\..*";
        final Pattern pattern = Pattern.compile(todaysfilepattern);
        FilenameFilter filenameFilter = new FilenameFilter() {
            @Override
            public boolean accept(File dir, String name)
            {
                Matcher m = pattern.matcher(name);
                return m.matches();
            }
        };
        File currentDir = new File( "Current_DIR" );
        String[] todaysfiles = currentDir.list(filenameFilter);       
    }
}


No comments:

Could not find method signingConfigs() for arguments

Could not find method signingConfigs() for arguments [build_5dw7nwfc8ibd8sagvx4p79x1u$_run_closure5@13e86039] on root project 'android&#...