Join Slack
Communities
Powered by
is this is how we are supposed to write a string t...
# getting-started
p
poohbar
10/17/2018, 3:25 AM
is this is how we are supposed to write a string to output stream?
h
hho
10/17/2018, 8:42 AM
I don't think so, because calling
close()
on the Writer will also close the underlying stream. I'd use
output.bufferedWriter().use { it.write(response) }
4
Views
Open in Slack
Previous
Next