Find the smallest number in a file

What precisely did you change? If you just replaced the two occurrences of small = line by small = parse(Int, line), then the comparison small > line would yield an error, as you are comparing an Int (small) to a String (line).

1 Like