Skip to content

Instantly share code, notes, and snippets.

@yaronv
Created April 13, 2017 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaronv/0c371c4a5be3ee3cdd1b7fce2ef5a1fb to your computer and use it in GitHub Desktop.
Save yaronv/0c371c4a5be3ee3cdd1b7fce2ef5a1fb to your computer and use it in GitHub Desktop.
val file = new File(config.getString("output.path"))
val bw = new BufferedWriter(new FileWriter(file))
bw.write(House.getHeadlines + "\n")
houses.foreach(h => {bw.write(h + "\n")} )
bw.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment