https://kotlinlang.org logo
#announcements
Title
# announcements
v

ValV

07/11/2019, 5:50 AM
What is the Kotlin's way to work with
<http://System.in|System.in>
,
System.out
?
b

bezrukov

07/11/2019, 5:53 AM
Copy code
System.`in`
System.`out`
v

ValV

07/11/2019, 5:54 AM
Thanks, aren't there any wrappers or some Kotlin-specific classes for IO?
b

bezrukov

07/11/2019, 5:59 AM
What's your use-case? There are several top-level functions like
readLine
and `print`/`println` in stdlib
v

ValV

07/11/2019, 6:01 AM
I need to pass
stdin
and
stdout
to a builder (function):
Copy code
builder.streams(System.`in`, System.`out`)
Because Kotlin has own
println
instead of
System.out.println
, so, maybe, there are some tricks with IO that I do not know yet
b

bezrukov

07/11/2019, 6:05 AM
No, it's ok to pass them to a builder
🙏 1