Skip to content

Commit 57f0de6

Browse files
committed
Use Path instead of File
1 parent 3b3f4d6 commit 57f0de6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Utils.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import java.io.File
21
import java.math.BigInteger
32
import java.security.MessageDigest
3+
import kotlin.io.path.Path
4+
import kotlin.io.path.readLines
45

56
/**
67
* Reads lines from the given input txt file.
78
*/
8-
fun readInput(name: String) = File("src", "$name.txt")
9-
.readLines()
9+
fun readInput(name: String) = Path("src/$name.txt").readLines()
1010

1111
/**
1212
* Converts string to md5 hash.

0 commit comments

Comments
 (0)