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

evkaky

07/24/2017, 7:55 AM
guys, I need some Char value, that indicates the EOF (end of file), some special value, that 100% won’t appear in the regular text input. What can I use?
val eof = '\0' // doesn't work
d

diesieben07

07/24/2017, 7:59 AM
Kotlin does not know the
\0
escape sequence, you need to use the
\uXXXX
notation. https://kotlinlang.org/docs/reference/basic-types.html#characters
3 Views