if that "split(',')" is from strutils, it returns seq[string], not tuple. I 
guess you need to use something like this: 
    
    
    for line in readFile(day02PathAndName):
      var data = line.split(',')
      if data.len() == 2:
        myKey = data[0]
        myValue = data[1]
        result...
      else:
        echo "Error in input: ", line
    
    
    Run

Reply via email to