79112827

Date: 2024-10-22 07:16:40
Score: 5
Natty:
Report link

Kotlin has a specific extension for reading contents of InputStream.

val inputAsString = input.bufferedReader().use { it.readText() }

You can try reading about this at this stack overflow post: In Kotlin, how do I read the entire contents of an InputStream into a String?

Reasons:
  • Blacklisted phrase (1): how do I
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Epidermis