Appends a character sequence (such as a string) to a file using the given character set. @param from the character sequence to append @param to the destination file @param charset the charset used to encode the output stream; see StandardCharsets for helpful predefined constants @throws
(CharSequence from, File to, Charset charset)
| 348 | |
| 349 | |
| 350 | public static void append(CharSequence from, File to, Charset charset) throws IOException { |
| 351 | write(from, to, charset, true); |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * Private helper method. Writes a character sequence to a file, optionally appending. |