Create a DataSink instance that writes data to a file.
a DataSink that will write to the given file.
a file where the data will be written. Must not be null.
on a null file argument.
file