Add fread(length) method

Fixed off-by-one write bug

Added test
Updated NEWS for #65545
Fixed null termination