public static BufferedReader createReader(File filename, String encoding) throws IOException {
        return new BufferedReader(new InputStreamReader(new FileInputStream(filename), encoding));
    }
Creates a buffered reader

@param filename the name or path of the file
@param encoding the encoding of the file, for instance "UTF-8"
vespajlib/src/main/java/com/yahoo/io/IOUtils.java