July 2018
Intermediate to advanced
242 pages
8h 6m
English
import java.io.File.separator as SEPARATOR
val filePahtName = "src${SEPARATOR}main${SEPARATOR}resources${SEPARATOR}file1.txt"
val filePahtName = "src${SEPARATOR}main${SEPARATOR}resources${SEPARATOR}file1.txt"val stream = File(filePahtName).inputStream()
val fileName = "src${SEPARATOR}main${SEPARATOR}resources${SEPARATOR}file1.txt"val stream = File(fileName).inputStream()stream.use { it.readBytes().also { println(String(it)) }}
Read now
Unlock full access