From: Brian Candler Date: 2009-03-03T23:11:16+09:00 Subject: Re: Reading result of a command Venkat Kumar wrote: > I am using system("dir") to execute commands in Command Prompt. > > I get the result(below) when I execute system("dir") command. I need to > store the result in an array. Use one of the forms of backticks: result = `dir` result = %x{dir} or use IO.popen. -- Posted via http://www.ruby-forum.com/.