Docs > Requiring Files

Sardonyx uses a simple file-based module system. To require a file, use `require`: ``` require "filename" ``` Here `filename` would be a filename to require, with no trailing `.sdx`. Files are looked up as follows: - First the current directory is searched. For example, if my folder layout was as follows: ``` dir subdir.sdx test.sdx ``` Then in `test.sdx` we could write ``` require "dir/subdir" ``` And in `subdir.sdx` we could write ``` require "../test" ``` - Next the environment variable `SDX_PATH` is searched. `SDX_PATH` should be set to a series of colon seperated paths. `SDX_PATH` is usually set up by [Volcano](https://github.com/SardonyxLang/Volcano), so you shouldn't need to worry about it.