read an array elements from an user