Corrected path for input file

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

No files matched your search

+1 -1
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)
+1 -1
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