Initial commit
This commit is contained in:
commit
3975bb9f02
7 changed files with 97 additions and 0 deletions
7
src/aoc.scala
Normal file
7
src/aoc.scala
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package aoc
|
||||
|
||||
import scala.io.Source
|
||||
import scala.util.Using
|
||||
|
||||
def loadInput(dayNumber: String) =
|
||||
Using.resource(Source.fromFile(s"input/day$dayNumber"))(_.mkString.trim)
|
||||
Loading…
Add table
Add a link
Reference in a new issue