You can use a '#include "scriptname.c"' statement at the top of your script to load a seperate script file.