You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
315 B

package day09
import (
"strconv"
"git.elis.nu/etu/aoc2020/utils"
)
var rows []int
func ParseFile(input string) {
// Parse file
for _, line := range utils.GetLinesFromFile("day09/" + input + ".txt") {
number, err := strconv.Atoi(line)
if err != nil {
continue
}
rows = append(rows, number)
}
}