From 57f0de61cb331f09ba83914bd015fc15c29ce677 Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Tue, 21 Nov 2023 09:29:09 +0100 Subject: [PATCH] Use `Path` instead of `File` --- src/Utils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Utils.kt b/src/Utils.kt index 543b7c4..33d5aae 100644 --- a/src/Utils.kt +++ b/src/Utils.kt @@ -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.