In opentfile(), use the argument s instead of spec[ncols]. This has not historically been a bug, because the argument always is spec[ncols]. But we really should either always use one or always use the other, and I think it's better to go this way.