writeToFile

fun <T : Any> IOFormat<T>.writeToFile(path: Path, obj: T)

Write a binary into file. Throws an error if file already exists