If you want to do it by code you can do the following:
function fileHasError(%x) {
%f = new FileObject();
%f.openForRead(%x);
while(!%f.isEOF())
%lines = %lines NL %f.readLine();
%f.close();
%f.delete();
eval(%lines NL "%assmonkeypoundervaginarandomtext=2331;");
if(%assmonkeypoundervaginarandomtext != 2331)
return false;
return true;
}
please note the file will be executed.