> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/i/include_a_file.md).

# Include a file

Include a file in the current namespace:

```ruby
include('file.sf')
```

Include a file as module (file must exists in `SIDEF_INC` as `Some/Name.sm`):

```ruby
include Some::Name
# variables are available here as: Some::Name::var_name
```
