normal, system() return true or false only, not stdout...
you can use ``, popen, or code that in ruby.
today_count = File.open('oct_10.txt').grep('time').grep('hi').size
(not tested)
normal, system() return true or false only, not stdout...
you can use ``, popen, or code that in ruby.
today_count = File.open('oct_10.txt').grep('time').grep('hi').size
(not tested)
Gabriel Laskar wrote: