File input does not work (even when stdin does!)

ok somehow it does indeed work now and i'm not sure what i changed (the worst type of debugging!)