michaelsims
while (true) { val num = fi.read(buf).takeIf { it > 0 } ?: break fo.write(buf, 0, num) }
mohsenoid