(ds_read_line): Add argument to limit the length of the line to be