Solutions
Files can be input into Mathematica using
SetDirectory["c://path//to//files"]
<< "file.m"
Note that you can't use the referring technique %n when giving input from a file. Also, the outputs of substitution expressions are automatically suppressed. Otherwise, you can pretty much write ordinary Mathematica code in your file.
In[59]:=
Out[61]=
In[62]:=
Out[65]=
| Created by Mathematica (April 10, 2007) |