How ti fill array with line of data