Reset fileinput before each openfile operation.