# Load file issue

**URL:** <https://www.ruby-forum.com/t/load-file-issue/233684>\
**Category:** Ruby\
**Created:** [January 3, 2015, 9:13pm UTC](https://www.ruby-forum.com/t/load-file-issue/233684 "2015-01-03T21:13:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [January 3, 2015, 9:13pm UTC](https://www.ruby-forum.com/t/load-file-issue/233684/1 "2015-01-03T21:13:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![notchinyourbedpost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3e96dc/32.png) [@notchinyourbedpost](https://www.ruby-forum.com/u/notchinyourbedpost)\
**Post date:** [January 4, 2015, 1:25pm UTC](https://www.ruby-forum.com/t/load-file-issue/233684/2 "2015-01-04T13:25:21Z")

</div>

Elizabeth Conn wrote in post #1165939:

> I just installed Ruby and am learning along with The Well Rounded  
> Rubyist.

“Grounded”. 🙂

> **[The Well-Grounded Rubyist - David A. Black](https://www.manning.com/books/the-well-grounded-rubyist)**
>
> The Well-Grounded Rubyist takes you from interested novice to proficient practitioner. It's a beautifully written tutorial that begins with the basic steps to get your first Ruby program up and running and goes on to explore sophisticated topics like...

> 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?
