Identical to write, except if the file already exists, appends to the file instead of error-ing out
Identical to write, except if the file already exists, replaces the file instead of error-ing out
Performs the actual opening and writing to a file.
Performs the actual opening and writing to a file. Basically cribbed
from java.nio.file.Files.write
so we could re-use it properly for
different combinations of flags and all sorts of Internals.Writables
Write some data to a file. This can be a String, an Array[Byte], or a Seq[String] which is treated as consecutive lines. By default, this fails if a file already exists at the target location. Use write.over or write.append if you want to over-write it or add to what's already there.