JuliaLang/julia — pull request #1741 by rephorm (2012-12-13 06:07:57+00:00)
Title: Fill the array passed into read in addition to returning it

When reading an array from an IOStream, the array passed into the function is filled with the data. Doing the same from an IOStream returns a new array, but leaves the passed in one untouched.

Note: this could probably be made optimized to not create a temporary array. But, this patch at least corrects the method behavior.