Created
June 26, 2018 14:51
-
-
Save danslapman/b7a8453cec542f62601178b070259b66 to your computer and use it in GitHub Desktop.
Scala scripting cookbook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.{Files, Paths, StandardOpenOption => SOO} | |
import scala.io.Source | |
import collection.JavaConverters._ | |
val sep = System.lineSeparator | |
val file = Source.fromFile(..) | |
val data = file.getLines | |
... | |
.asJava | |
file.close() | |
Files.write(Paths.get(..), data, SOO.WRITE, SOO.CREATE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment