Corrected path for input file

This commit is contained in:
David Doblas Jiménez 2022-08-18 10:47:29 +02:00
parent d5fdd2a8fd
commit 9dd22abfe1
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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