Read from file put it into dynamically created memory space using lists.