Getting an array directly from a file