I've been working on a specific piece of code, which simultaneously reads from two files and compares data. Something in the lines of:
for l1 in eachline (firstfile)
for l2 in eachline (secondfile)
if l1==l2
println("match!");
end
end
end
Yet what happens is the following> iteration proceeds only for first line of first file and all lines in second file, but then stops. So instead of using the second line of first file in the next cycle, program stops without errors. How is this done in Julia if not with the following snippet?
Thank you.