From 9dd22abfe1634cde65903598b1f60633c6ecdf97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Doblas=20Jim=C3=A9nez?= Date: Thu, 18 Aug 2022 10:47:29 +0200 Subject: [PATCH] Corrected path for input file --- src/Julia/Problem059.jl | 2 +- src/Julia/Problems001-050/Problem022.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Julia/Problem059.jl b/src/Julia/Problem059.jl index 2249a99..0d3dc3b 100644 --- a/src/Julia/Problem059.jl +++ b/src/Julia/Problem059.jl @@ -42,7 +42,7 @@ function Problem59() values in the original text. =# - file = "/datos/Scripts/Gitea/Project_Euler/src/files/Problem59.txt" + file = "../files/Problem59.txt" data = readline(file) data = parse.(Int, split(data, ",")) # encrypted = readdlm(file, ',', Int) diff --git a/src/Julia/Problems001-050/Problem022.jl b/src/Julia/Problems001-050/Problem022.jl index 6f668ae..a3cabd7 100644 --- a/src/Julia/Problems001-050/Problem022.jl +++ b/src/Julia/Problems001-050/Problem022.jl @@ -22,7 +22,7 @@ function Problem22() COLIN would obtain a score of 938 × 53 = 49714. What is the total of all the name scores in the file? =# - file = "/datos/Scripts/Gitea/Project_Euler/src/files/Problem22.txt" + file = "../files/Problem22.txt" names = sort(readdlm(file, ',', String)[:]) result = 0