Mushy-pea 36 What, you can change this tag?

Hello all. I am trying to write an SSJS application to process the submissions from a form on my website. I downloaded the Mono .NET compiler, which has a JScript.NET compiler in it. I believe JScript.NET is a superset of Javascript (and my host has a Javascript runtime engine) so this seemed appropriate. However, I'm getting compile errors from some very basic statements. For example:

<server>
var file1 = 0;
var success = 0;
var first_name = "0";
var surname = "0";
var e_mail = "0";
var add = "0";
var feedback = "0";
 
file1 = new File("/logs/newsgroup.txt");
success = file1.open("a");
file1.close();
</server>

This brings up numerous errors starting with:

/mnt/floppy/thanks.htm (1, 0) Error: msg.syntax
Unhandled exception: System.Exception: must create expr stm with
numerous errors....
numerous errors....

If anyone can point out my silly mistakes I would really appriciate it. Thanks.

Steven.