readarray -t fr < fr.txt
array_of_lines=("${(@f)$(my_command)}")