code: private static String readFile(String filename)
                      throws	FileNotFoundException,
                              SecurityException,
                              IOException
      {
          FileInputStream	fid = new FileInputStream(filename);
          int nb = fid.available();
          byte[]	inStr  = new byte[nb];
          nb = fid.read(inStr);
          fid.close();
          return new String(inStr);
      }
docs: ===============================================================