Fixed minor issues with an example script

The example script AppendToFile.es declared a local variable 'line' that
was not used: removed the declaration.

The same script also was catching the exception System.IO.FileNotFound,
which made no sense.  Changed it to catch System.IO.IOException, which
does make sense.