Y
ycsunil
Hello all,
Here is my small ruby program:
if (ARGV[0] == 'add')
puts 'input something'
gt = gets
puts gt
else
puts 'fail'
end
If I try to execute above program am getting below error:
C:\Documents and Settings\sunilc\Desktop>ruby test.rb 'add'
input something
test.rb:3:in `gets': No such file or directory - add (Errno::ENOENT)
from test.rb:3
Please let me know why is this error coming?
-Sunil
Here is my small ruby program:
if (ARGV[0] == 'add')
puts 'input something'
gt = gets
puts gt
else
puts 'fail'
end
If I try to execute above program am getting below error:
C:\Documents and Settings\sunilc\Desktop>ruby test.rb 'add'
input something
test.rb:3:in `gets': No such file or directory - add (Errno::ENOENT)
from test.rb:3
Please let me know why is this error coming?
-Sunil