title: how to convert scala fs2 stream to string?
body: <p>I'm want to know how to convert Scala fs2 Stream to string, from fs2 github readme example:</p>
  
  <pre><code>def converter[F[_]](implicit F: Sync[F]): F[Unit] = {
    val path = "/Users/lorancechen/version_control_project/_unlimited-works/git-server/src/test/resources"
  
    io.file.readAll[F](Paths.get(s"$path/fs.txt"), 4096)
      .through(text.utf8Decode)
      .through(text.lines)
      .filter(s =&gt; !s.trim.isEmpty &amp;&amp; !s.startsWith("//"))
      .map(line =&gt; fahrenheitToCelsius(line.toDouble).toString)
      .intersperse("\n")
      .through(text.utf8Encode)
      .through(io.file.writeAll(Paths.get(s"$path/fs-output.txt")))
      .compile.drain
  
  }
  
  // at the end of the universe...
  val u: Unit = converter[IO].unsafeRunSync()
  </code></pre>
  
  <p>How to get result to String rather then to another file?</p>