code: public void write(Object from, File target) throws IOException {
      OutputStream outputStream = new FileOutputStream(target);
      try {
        write(from, outputStream);
      } finally {
        outputStream.close();
      }
    }
docs: Write an Object in TOML to a {@link File}. Output is encoded as UTF-8.
  
  @param from the object to be written
  @param target the File to which the TOML will be written
  @throws IOException if any file operations fail