title: How do I create a Sink to read all bytes from the Source?
body: <p>I have a scala method that takes this source as per my requirements</p>
  
  <pre><code>def func(data : Source[ByteString,Any]) { ... }
  </code></pre>
  
  <p>all I want to do, for now, is to read all of the bytes from this source and write them to a file. I've read a lot of examples that do more complex things like fold a calculation over all values. I want something more simple that just gets the bytes in order so I can write them out. How would I do this?</p>