Skip to content

Instantly share code, notes, and snippets.

@MrTact
Last active January 11, 2019 06:23
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 MrTact/b9b53f245be2f66f40a02564f7246d11 to your computer and use it in GitHub Desktop.
Save MrTact/b9b53f245be2f66f40a02564f7246d11 to your computer and use it in GitHub Desktop.
Easily log some text to a file in Kotlin
File("log.txt").printWriter().use { out ->
params.list.forEach(out::println)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment