Last active
January 11, 2019 06:23
-
-
Save MrTact/b9b53f245be2f66f40a02564f7246d11 to your computer and use it in GitHub Desktop.
Easily log some text to a file in Kotlin
This file contains 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
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