Here you can find the source of write(Path path, Iterable extends CharSequence> lines, Charset cs, OpenOption... options)
public static Path write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) throws IOException
//package com.java2s; //License from project: MIT License import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.OpenOption; import java.nio.file.Path; public class Main { public static Path write(Path path, byte[] bytes, OpenOption... options) throws IOException { return Files.write(path, bytes, options); }/*from www. j av a2 s .co m*/ public static Path write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) throws IOException { return Files.write(path, lines, cs, options); } }