read array from file