# How to load a program into interpreter?

**URL:** <https://www.ruby-forum.com/t/how-to-load-a-program-into-interpreter/147364>\
**Category:** Ruby\
**Created:** [September 1, 2008, 2:42am UTC](https://www.ruby-forum.com/t/how-to-load-a-program-into-interpreter/147364 "2008-09-01T02:42:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssecorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f04885/32.png) [@ssecorp](https://www.ruby-forum.com/u/ssecorp)\
**Post date:** [September 1, 2008, 2:42am UTC](https://www.ruby-forum.com/t/how-to-load-a-program-into-interpreter/147364/1 "2008-09-01T02:42:21Z")

</div>

When using emacs-mode for Ruby when I do C-c C-l it asks for a file to  
be loaded and provides the directory fo the current file.

How do I load the file that I am in directly?

Also how do I load a file form irb?
