public synchronized String readFile(String fileName) throws IOException, BadLocationException {
  FileReader fileReader=null;
  try {
    if ((fileName == null) || fileName.equals("")) {
      return null;
    }
    fileReader=new FileReader(fileName);
    return readInputStream(fileReader);
  }
  finally {
    if (null != fileReader)     fileReader.close();
  }
}

public synchronized String readFile ( String fileName ) throws IOException , BadLocationException { FileReader fileReader = null ; try { if ( ( fileName == null ) || fileName . equals ( "" ) ) { return null ; } fileReader = new FileReader ( fileName ) ; return readInputStream ( fileReader ) ; } finally { if ( null != fileReader ) fileReader . close ( ) ; } }
read a file from an absolute file name .
