read textfile and store into array