Add file reading to Kotlin template
This commit is contained in:
parent
8da3860779
commit
9b19387e42
|
@ -1,5 +1,8 @@
|
||||||
package moe.kageru.aoc
|
package moe.kageru.aoc
|
||||||
|
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
println("Hello, Advent of Code")
|
val lines = File("input").readLines().map { it.toInt() }
|
||||||
|
println(lines.sum())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user