ax 2012 write to file
public static void main(Args args)
{
TextBuffer tb;
FileIOPermission perm;
str filename = "c:\\aaa.txt";
;
perm = new FileIOPermission(filename, "w");
perm.assert();
tb = new TextBuffer();
tb.appendText("abc");
tb.appendText("xyz");
tb.appendText("\n");
tb.appendText("123");
tb.toFile(filename);
CodeAccessPermission::revertAssert();
info("xixi");
}