added code to doc to open a file and add contents to the array.