public static synchronized File getFileGivenNameOnCurrentDirectory(String directoryName){
        // Proceed only if the directory name is not null and is not empty
        if(directoryName != null && !directoryName.trim().isEmpty()){
            // Get the current directory and list all its contents
            File[] files = new File(".").listFiles();
            // If there are no files then do not proceed
            if(files != null){
                // Iterate through every file and return the file that the user is looking for
                for(File file : files){
                    if(file.getName().equals(directoryName)){
                        return file;
                    }
                }
            }
        }
        // Do not return anything
        return null;
    }