Code example for File

Methods: getAbsoluteFile

0
            } 
        } 
    } 
 
    static void convertFile(File f) throws IOException {
        File fullPath = f.getAbsoluteFile();
        File dir = fullPath.getParentFile();
        String filename = fullPath.getName();
        File convertedFile = new File(dir, filename + ".canonical");
        config.setDirectoryForTemplateLoading(dir);
        Template template = config.getTemplate(filename);
        FileWriter output = new FileWriter(convertedFile);
        try { 
            template.dump(output);
        } finally { 
            output.close();
        } 
    } 
 
    static void usage() { 
Contextual code suggestions in your IDE  Get Codota for Java