if (fileName.toLowerCase().endsWith(".sgf"))
try {
StringBuffer sb = new StringBuffer();
InputStream is = fc.openInputStream();
SGFParser parser = new SGFParser(new InputStreamReader(is));
SGFNode head = parser.parseHead();
is.close();
for (Enumeration e = head.getProperties(); e.hasMoreElements(); ) {
sb.append(e.nextElement().toString());
sb.append("\n");
}