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 {@link StandardCharsets} for helpful predefined constants @throws
(CharSequence from, File to, Charset charset)
| 355 | * @deprecated Prefer {@code asCharSink(to, charset, FileWriteMode.APPEND).write(from)}. |
| 356 | */ |
| 357 | @Deprecated |
| 358 | @InlineMe( |
| 359 | replacement = "Files.asCharSink(to, charset, FileWriteMode.APPEND).write(from)", |
| 360 | imports = {"com.google.common.io.FileWriteMode", "com.google.common.io.Files"}) |
| 361 | public |
| 362 | static void append(CharSequence from, File to, Charset charset) throws IOException { |
| 363 | asCharSink(to, charset, FileWriteMode.APPEND).write(from); |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * Returns true if the given files exist, are not directories, and contain the same bytes. |