MCPcopy
hub / github.com/apache/commons-io / writeLines

Method writeLines

src/main/java/org/apache/commons/io/FileUtils.java:2216–2219  ·  view source on GitHub ↗

Writes the toString() value of each item in a collection to the specified File line by line. The specified character encoding and the default line ending will be used. NOTE: As from v1.3, the parent directories of the file will be created if they do not exist. @param f

(final File file, final String encoding, final Collection<?> lines)

Source from the content-addressed store, hash-verified

2214 * @since 1.1
2215 */
2216 public static void writeLines(final File file, final String encoding, final Collection<?> lines)
2217 throws IOException {
2218 writeLines(file, encoding, lines, null, false);
2219 }
2220
2221 /**
2222 * Writes the <code>toString()</code> value of each item in a collection to

Calls 5

openOutputStreamMethod · 0.95
writeLinesMethod · 0.95
closeQuietlyMethod · 0.95
flushMethod · 0.45
closeMethod · 0.45