Add file reading to Kotlin template

This commit is contained in:
kageru 2019-12-01 07:22:03 +01:00
parent 8da3860779
commit 9b19387e42
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -1,5 +1,8 @@
package moe.kageru.aoc
import java.io.File
fun main() {
println("Hello, Advent of Code")
val lines = File("input").readLines().map { it.toInt() }
println(lines.sum())
}