public void write(final Object object, final File file)
		throws IOException
	{
		try (final FileOutputStream out = new FileOutputStream(file)) {
			write(object, out);
		}
	}
Write the (serializable) object to the given file.

@param object the object to serialize.
@param file the file to write the object to.
@throws NullPointerException if one of the arguments is {@code null}.
@throws IOException if the object could not be serialized.
jenetics/src/main/java/io/jenetics/util/IO.java