check = IO.popen("spell","r+")check.puts("A")check.puts("D")check.close_writelist = check.readlineslist.collect! { |x| x.chomp }