How to load a file into IEx

I’m making this little post because I’ve googled for this at least 5 times now and none of the results are ever what I’m looking for.

If you want to LOAD a file into IEx, do it like this:

iex> import_file("relative/path/to/file.ex")

If you want to RELOAD a module after it’s already been loaded from a file, do it like this:

iex> r MyModule

That’s it!