Hello!

I was messing around with the "system" command in Ruby!
That's really cool, but a question immediately sprang out while using it
: I noticed that its output is a TrueClass, but how could I use the
output made of directories and files as string?
For example : if I cast a

system('ls')

it will return me a variety of directories and files. So, let's put that
I want to scan this result to find out which directories are named how
(with a Regexp), is there a way to read this output or the is solely a
TrueClass?

-- 
Posted via http://www.ruby-forum.com/.