TextIo textIo;
str fileName;
FileIOPermission fioPermission;
#File
;
fileName = "c:\\myfolder\\test.txt"
fioPermission = new FileIOPermission
(fileName ,"RW");
fioPermission.assert();
if (WINAPI::fileExists(fileName))
{
WINAPI::deleteFile(fileName);
}
textIo = new TextIo(fileName, #IO_WRITE);
textIo.write("test 12");
textIo.write("test 34");
textIo = null;
CodeAccessPermission::revertAssert();
}
Axapta - Usable functions for queries
5 yıl önce
Hiç yorum yok:
Yorum Gönder