More Output
One of the core IO classes is called Output
Convert Object To Output
In addition to Resource.fromFoo methods to create Resources (which are often Output objects) There is a second option for converting certain objects directly to an Output object. This example shows how to convert a File to an output object
import scalax.io._
import java.io.File
import Output.asOutputConverter
// By default files can be converted to an Output Object by importing
// Output.asOutputConverter and calling asOutput on the file
val output:Output = new File("aFile").asOutput
// needed for the write call below
implicit val codec = Codec.UTF8
output.write("data is being written to file")