Skip to content

Commit

Permalink
Use Path instead of File
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Nov 21, 2023
1 parent 3b3f4d6 commit 57f0de6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import java.io.File
import java.math.BigInteger
import java.security.MessageDigest
import kotlin.io.path.Path
import kotlin.io.path.readLines

/**
* Reads lines from the given input txt file.
*/
fun readInput(name: String) = File("src", "$name.txt")
.readLines()
fun readInput(name: String) = Path("src/$name.txt").readLines()

/**
* Converts string to md5 hash.
Expand Down

0 comments on commit 57f0de6

Please sign in to comment.