Save lines in array