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");
}

posted on 2015-07-22 16:39  香里七  阅读(154)  评论(0编辑  收藏  举报