src/org/kocakosm/pitaya/io/TextFiles.java
public static BufferedWriter newWriter(File f, Charset charset,
		WriteOption... options) throws IOException
	{
		OutputStream out = XFiles.newOutputStream(f, options);
		return new BufferedWriter(new OutputStreamWriter(out, charset));
	}
public static BufferedWriter newWriter(File f, Charset charset,
		WriteOption... options) throws IOException
	{
		OutputStream out = XFiles.newOutputStream(f, options);
		return new BufferedWriter(new OutputStreamWriter(out, charset));
	}
public static BufferedWriter newWriter ( File f , Charset charset , WriteOption ... options ) throws IOException { OutputStream out = XFiles . newOutputStream ( f , options ) ; return new BufferedWriter ( new OutputStreamWriter ( out , charset ) ) ; }
Returns a new {@code BufferedWriter} to write to the given
{@code File} using the specified charset.

@param f the file to write to.
@param charset the charset to use.
@param options the write options.

@return a {@code BufferedWriter} to write to the given {@code File}.

@throws NullPointerException if one of the arguments is {@code null}.
@throws IllegalArgumentException if incompatible options are given.
@throws FileNotFoundException if {@code f} exists but is a directory
rather than a regular file, or if it does not exist but cannot
be created, or if it cannot be opened for any other reason.
@throws IOException if the {@link WriteOption#CREATE} option is given
and the specified file already exists.
@throws SecurityException if a security manager exists and denies
write access to {@code f}.
Returns a new { @code BufferedWriter } to write to the given { @code File } using the specified charset .