Accumulate read data in string instead of array.

The array version uses a lot of memory.