Wap To Read And Write 1d Array