Add a function that can be used to include an external file  with nice e...

...rror handling.

@bruce-alderson for review