private static char[] loadFileIntoArray(File testFile) throws IOException {
        Reader in = new InputStreamReader(new FileInputStream(testFile),
                "utf-8");
        StringBuilder sb = new StringBuilder();
        int c = 0;
        while ((c = in.read()) != -1) {
            sb.append((char) c);
        }
        char[] rv = new char[sb.length()];
        sb.getChars(0, sb.length(), rv, 0);
        return rv;
    }
@param endTime
@param reader
@param testFile
@throws IOException
resources/examples/research-src/nu/validator/perftest/ParserPerfHarness.java