We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Path
File
1 parent 3b3f4d6 commit 57f0de6Copy full SHA for 57f0de6
src/Utils.kt
@@ -1,12 +1,12 @@
1
-import java.io.File
2
import java.math.BigInteger
3
import java.security.MessageDigest
+import kotlin.io.path.Path
4
+import kotlin.io.path.readLines
5
6
/**
7
* Reads lines from the given input txt file.
8
*/
-fun readInput(name: String) = File("src", "$name.txt")
9
- .readLines()
+fun readInput(name: String) = Path("src/$name.txt").readLines()
10
11
12
* Converts string to md5 hash.
0 commit comments