File/IO readlines supporting new params limit, and open mode