public <T> T read(final Class<T> type, final File file)
		throws IOException
	{
		try (final FileInputStream in = new FileInputStream(file)) {
			return read(type, in);
		}
	}
Reads an object from the given file.

@param <T> the type of the read object
@param file the file to read from.
@param type the type of the read object.
@return the deserialized object.
@throws NullPointerException if the input stream {@code in} is {@code null}.
@throws IOException if the object could not be read.
jenetics/src/main/java/io/jenetics/util/IO.java