Java Text File Write nio writeData(String address, BigInteger toWrite)

Here you can find the source of writeData(String address, BigInteger toWrite)

Description

write Data

License

Open Source License

Declaration

public static void writeData(String address, BigInteger toWrite) throws IOException 

Method Source Code

//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
    }
}

Related

  1. writeAllText(File file, String contents)
  2. writeArray2File(File file, Object[] objects, String code)
  3. writeAscii(CharSequence ascii, OutputStream os)
  4. writeContent(File file, String content)
  5. writeContent(File file, String content)
  6. writeDataFromList(String address, ArrayList toWrite)
  7. writeFileContent(File file, String content)
  8. writeFileContents(File file, String content)
  9. writeFileTxt(String fileName, String[] totalFile)