标签:
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");
}
标签:
原文地址:http://www.cnblogs.com/xiangliqi/p/4667880.html