makes each line in file an element in array