sink
Returns a sink that writes bytes to file from beginning to end. If file already exists it will be replaced with the new data.
Parameters
must Create
true to throw an IOException instead of overwriting an existing file. This is equivalent to O_EXCL
on POSIX and CREATE_NEW
on Windows.