code: public static boolean saveTxt(String path, String content)
      {
          try
          {
              FileChannel fc = new FileOutputStream(path).getChannel();
              fc.write(ByteBuffer.wrap(content.getBytes()));
              fc.close();
          }
          catch (Exception e)
          {
              logger.throwing("IOUtil", "saveTxt", e);
              logger.warning("IOUtil saveTxt 到" + path + "失败" + e.toString());
              return false;
          }
          return true;
      }
docs: 快速保存
  
  @param path
  @param content
  @return