Yossi Saiada
04/29/2019, 8:02 AMval file = File("temp")
ObjectOutputStream(FileOutputStream(file)).use { it.writeObject(obj) }
return file.readBytes()
However, I really want to avoid using files. So, I'm wondering whether there is a better/shorter way to achieve the same result.
Thanks 🙂diesieben07
04/29/2019, 8:04 AM