I just installed Ruby and am learning along with The Well Rounded
Rubyist.
One of the steps is to create a file c2f.rb and check it.
I know I need to put it in the directory,
So I did by mkdir new c2f.rb
When I try to access the file via ruby c2f.rb
I get
ruby: permission denied – c2f.rb (load error)
Thanks for the help.
Side note: this is all done is command prompt not interactive
Elizabeth Conn wrote in post #1165939:
I just installed Ruby and am learning along with The Well Rounded
Rubyist.
“Grounded”.
One of the steps is to create a file c2f.rb and check it.
What do you mean by “check it”? Did you maybe mean to “execute it”?
I know I need to put it in the directory,
What do you mean by “the directory”?
So I did by mkdir new c2f.rb
That will create two directories “new” and “c2f.rb”.
When I try to access the file via ruby c2f.rb
I get
ruby: permission denied – c2f.rb (load error)
Can you show the output of
ls -ldF c2f.rb
Side note: this is all done is command prompt not interactive
On what OS are you?