import java.io.File fun main(args: Array<String>) { File("src/inputFile.txt").forEachLine { print(it) // it refers to each line's content } }
import java.io.File fun main(args: Array<String>) { File("src/inputFile.txt").forEachLine { print(it) // it refers to each line's content } }