Join Slack
Communities
Powered by
you can also just use <https://kotlinlang.org/api/...
# getting-started
d
diego-gomez-olvera
10/12/2018, 10:06 AM
you can also just use
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/java.io.-file/append-text.html
c
CamilleBC
10/12/2018, 12:10 PM
@diego-gomez-olvera
Thanks! Is there any difference to using the PrintWriter apart from the ease of use? I can't guess much from the doc
d
diego-gomez-olvera
10/12/2018, 12:13 PM
it is Kotlin, worse case scenario, you can check the source 🙂
https://github.com/JetBrains/kotlin/blob/ba6da7c40a6cc502508faf6e04fa105b96bc7777/libraries/stdlib/jvm/src/kotlin/io/FileReadWrite.kt
diego-gomez-olvera
10/12/2018, 12:13 PM
it should be the same
c
CamilleBC
10/12/2018, 12:38 PM
Thanks for the repo! I rarely think to read the source, I always feel I will never understand it 😄
CamilleBC
10/12/2018, 12:40 PM
It seems it does not buffer the data though. (I know PrintWriter doesn't as well though)
3
Views
Open in Slack
Previous
Next