Here you can find the source of writeData(String address, BigInteger toWrite)
public static void writeData(String address, BigInteger toWrite) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.math.BigInteger; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; public class Main { public static void writeData(String address, BigInteger toWrite) throws IOException { Path path = Paths.get(address); byte[] data = toWrite.toByteArray(); Files.write(path, data);// w w w. j ava2 s . c om } }