# Re: how to include files in ruby webs?

**URL:** <https://www.ruby-forum.com/t/re-how-to-include-files-in-ruby-webs/67968>\
**Category:** Ruby\
**Created:** [September 8, 2006, 6:32am UTC](https://www.ruby-forum.com/t/re-how-to-include-files-in-ruby-webs/67968 "2006-09-08T06:32:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [September 8, 2006, 6:32am UTC](https://www.ruby-forum.com/t/re-how-to-include-files-in-ruby-webs/67968/1 "2006-09-08T06:32:54Z")

</div>

From: Edward [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]

> What is the equivalent of  
> include(“library.php”);  
> in ruby?

In an ERB template, you can do \<%=IO.read( ‘header.inc’ )%\> to pull in  
the contents of another file.

As the other post mentioned, load and require allow you to load in ruby  
code from another ruby file.
